crypto createSign
method throws exception when passed PKCS#8 keys
#139
Milestone
createSign
method throws exception when passed PKCS#8 keys
#139
The crypto
createSign
method throws the following exception when it's passed an PKCS#8 RSA key.Trireme version is Trireme 0.8.8 / node 0.10.32
I've tested, and node (v0.10.32) has no problems with these keys. Test case is below. You'll see that node has no problems here, but trireme throws an exception.
In the meantime, if anyone else is running into this issue, I was able to work around it using the unix
openssl
utility to convert the key to PKCS#1 format, like so:The text was updated successfully, but these errors were encountered: