openssl req -new -newkey
does not output generated key to stdout
#22377
-
> openssl version
OpenSSL 3.0.9 30 May 2023 (Library: OpenSSL 3.0.9 30 May 2023) Documentation states that Here is the command I'm running: > openssl req -x509 -new -noenc -newkey ec -pkeyopt ec_paramgen_curve:P-256 -subj "/C=US/ST=CA/L=San Francisco/O=Example LLC/OU=IT Dept/CN=exmaple.org/emailAddress=it@exmaple.org" -addext "subjectAltName=DNS:www.exmaple.org,DNS:mail.exmaple.org" And this is what I get:
As you can see, there is neither I would expect something like that on
UPD: just discovered that specifying a dash instead of filename ( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You need to look at the default_keyfile configuration value in the The documentation says that the default_keyfile must not be set for the private key output to go to stdout. |
Beta Was this translation helpful? Give feedback.
You need to look at the default_keyfile configuration value in the
[req]
section of your openssl.cnf file. If it is unchanged from what we ship by default it is set to privkey.pem which means there will probably be a privkey.pem file created with the private key.The documentation says that the default_keyfile must not be set for the private key output to go to stdout.