Menu

A default passphrase when generatinga an encrypted private key?

Sky Walker
2024-01-16
2024-01-16
  • Sky Walker

    Sky Walker - 2024-01-16

    Hello, I'm using this tool to generate a csr and a private key, the command
    I use is openssl req -new -newkey rsa:3072 -sha256 -out test.com.csr -keyout test.com.key -subj "/C=/ST=/L=/O=/OU=/CN= test.com/emailAddress=admin@test.com". I notice there is no prompt for
    entering a passphrase and the generated private key is encrypted. I was
    wondering if there is a default passphrase in this case? Thank you.

     
  • Pedro F. Albanese

    I tried to reproduce the error, and when I run this same command, the program prompts for the password twice. What version are you running?

     
  • Pedro F. Albanese

    Note that it is possible to enter the password when generating:
    openssl req -new -newkey rsa:3072 -sha256 -out test.com.csr -keyout test.com.key -subj "/C=/ST=/L=/O=/OU=/CN= test.com/emailAddress=admin@test.com" -passout pass:passphrasehere

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.