Skip to content

openssl req -new -newkey does not output generated key to stdout #22377

Answered by t8m
RuStrannik asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by t8m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #22354 on October 13, 2023 09:22.