OpenSSL without prompt
Posted
by
JP19
on Super User
See other posts from Super User
or by JP19
Published on 2010-12-27T17:39:45Z
Indexed on
2010/12/27
17:55 UTC
Read the original article
Hit count: 290
Hi, I am using following code to generate keys:
apt-get -qq -y install openssl;
mkdir -p /etc/apache2/ssl;
openssl genrsa -des3 -out server.key 1024;
openssl req -new -key server.key -out server.csr;
cp server.key server.key.org;
openssl rsa -in server.key.org -out server.key;
openssl x509 -req -days 12000 -in server.csr -signkey server.key -out server.crt;
mv server.crt /etc/apache2/ssl/cert.pem;
mv server.key /etc/apache2/ssl/cert.key;
rm -f server.key.orig;
rm -f server.csr
How can I skip the passphrase prompting?
thanks
JP
© Super User or respective owner