openssl genrsa -des3 -passout pass:x -out server.pass.key 2048
openssl rsa -passin pass:x -in server.pass.key -out server.key
rm server.pass.key
openssl req -new -key server.key -out server.csr \
-subj "/C=UK/ST=Warwickshire/L=Leamington/O=OrgName/OU=IT Department/CN=example.com"
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
Last active
September 10, 2017 04:48
-
-
Save weblogix/2125945cf3d1822b4a22dcc805739e01 to your computer and use it in GitHub Desktop.
OpenSSL - How to generate a self-signed certificate in non interactive mode #openssl
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment