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

215 Views Asked by At

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?

1

There are 1 best solutions below

3
On BEST ANSWER

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