Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generation of private key using des3 gets stuck

I'm following Heroku's documentation to generate a private key for an SSL certificate.

When I execute the command openssl genrsa -des3 -out server.pass.key 2048, I get the following result:

$ openssl genrsa -des3 -out server.pass.key 2048
Loading 'screen' into random state - done
Generating RSA private key, 2048 bit long modulus
..........................+++
..................................................+++

I can't get to the prompt where I'm supposed to enter the passphrase for the keys.

I don't understand why OpenSSL fails to complete. I've generated keys without triple DES, so I guess the error is in the encryption. How can I get this solved?

like image 641
akis Avatar asked Aug 16 '16 18:08

akis


People also ask

What is the most secure method of generating private keys?

Naturally this topic stems from current events related to the private key exposure and subsequent mass revocation by Trustico, and of course, we must stress first off that the most secure method of key storage is to generate the private keys on the server and then use the Certificate Signing Request (CSR) when ...


1 Answers

I saw this exact symptom in a Git for Windows shell. It might be that it gets stuck trying to ask for a password but can't. So as suggested here I added -passout pass:MyPassword and it worked.

like image 125
CrazyPyro Avatar answered Oct 13 '22 23:10

CrazyPyro