I have this command:
openssl genrsa -des3 -out host.key 1024
It asks me for a password, and I want to automate it! How I can make it read the password from a text file (host.pass) so it will not ask me, or have it ignore the password? Which approach is better?
By omimtting
-des3you won’t be prompted for a passphrase (i.e. the key will not be encrypted).