Trouble importing RSA-PSS key in NodeJS using subtle.importKey
I’m trying to import a private key to sign an XML file in NodeJS.
To sign the XML, I’m using xmldsigjs which requires the key to be passed in a CryptoKey
object that is obtained by crypto.subtle.importKey
.
In my understanding importKey
takes the key in the DER format.
I have generated a key and certificate using the following command:
Trouble importing PSA-RSS key in NodeJS using subtle.importKey
I’m trying to import a private key to sign an XML file in NodeJS.
To sign the XML, I’m using xmldsigjs which requires the key to be passed in a CryptoKey
object that is obtained by crypto.subtle.importKey
.
In my understanding importKey
takes the key in the DER format.
I have generated a key and certificate using the following command: