I am using Json Web Token module in NodeJS to generate JWT.
I converted .p12 file to .pem with ‘only private key’ option using openssl.
While trying to get token(signing certificate), Json Web Token module throws an error:
06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt
After research, I see that the problem occurs if openssl version is different for encryption and decryption.
Can you please tell me the version of openssl that you encrypt the certificate?
Also if you think that the problem cause is different, I will appreciate to hear from you.
My version of openssl: