Jump to content
Welcome to our new Citrix community!

Invalid private key, or PEM pass phrase required for this private key


JSR MICRO

Recommended Posts

All,

 

We are trying to install a server certificate on our netscaler, but when at the last step it fails with the error message: "Invalid private key, or PEM pass phrase required for this private key". I tried already the command "openssl rsa -in current_keyfilename -out NEW_keyfilename" but it still fails with above message.

 

Anyone an idea?

 

Thank you in advance.

Link to comment
Share on other sites

run the following commands:

For the key file: openssl rsa -noout -modulus -in FILE.key

 

For the cert file: openssl x509 -noout -modulus -in FILE.cer

 

The modulus output should match exactly.

 

Example:

 

root@VPX# openssl rsa -noout -modulus -in letuslab.key
Modulus=C4919A3FB2B68726DEDA92E7777E999E679354C6E4E1A406893EAB7E9018A56FC5F90992A421013A657E37E6315F198A148BEB6ECAF42C0167ED12CB4088AA7261E1BFC0854B4DB2FA0A30421EFCC9B26A71E4859232CC4822A457760D523B7111C8113BE2232BD252BD16CAAEB2058782355887B4C4939E214E2F227DB2605296A7CD713B4F86A324C216B1EECD3AC761A5366900D27307B57094C2BBD73E0FB3943BB434E3D833614063D1D8B4F98F7588AC529C2A35FFA952E77A250ADC259237EE62614D368C9560304890005823329F96F9CB812C8FE334FF0F32843D71E356807B2A07ACB089D00C1B304C9D1F4E28090A71DC005565A52C7653


root@VPX# openssl x509 -noout -modulus -in wilcard.letuslab.com.cer
Modulus=C4919A3FB2B68726DEDA92E7777E999E679354C6E4E1A406893EAB7E9018A56FC5F90992A421013A657E37E6315F198A148BEB6ECAF42C0167ED12CB4088AA7261E1BFC0854B4DB2FA0A30421EFCC9B26A71E4859232CC4822A457760D523B7111C8113BE2232BD252BD16CAAEB2058782355887B4C4939E214E2F227DB2605296A7CD713B4F86A324C216B1EECD3AC761A5366900D27307B57094C2BBD73E0FB3943BB434E3D833614063D1D8B4F98F7588AC529C2A35FFA952E77A250ADC259237EE62614D368C9560304890005823329F96F9CB812C8FE334FF0F32843D71E356807B2A07ACB089D00C1B304C9D1F4E28090A71DC005565A52C7653
 

  • Like 2
Link to comment
Share on other sites

I get an output from the .key but when I try to do above command for my .cer i get the following error:

 

unable to load certificate 

34374509480: error:0906D06C :PEM routines:PEM_read_bio:no start line:/home/build/rs_120_53_3_RTM/usr.src/crypto/openssl/crypto/pem/pem.lib.c:707Expecting: TRUSTED CERTIFICATE

Link to comment
Share on other sites

  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...