opensslprivate-keypassphrase

How to generate a reproducable private key from pass phrase using the openssl command?


Invoking the following command multiple times seems to yield a different private key every time.

openssl genpkey -algorithm RSA -out private.pem -pass pass:papa-was-a-rolling-scone

What I would like is for the output to be reproducible. Is that possible?


Solution

  • Short answer, no. There is a random seed. Even without password protection, the key will not be the same.