Self Signed SSL Certificates: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<htmlet nocache="yes"> | == Generating a Self Signed SSL Certificate == | ||
To quickly generate a self-signed certificate, enter a domain name below: | |||
<htmlet nocache="yes">selfsignedssl-js</htmlet> | |||
Run the following commands: | |||
<htmlet nocache="yes">selfsignedssl-cmd</htmlet> | |||
To configure apache to use the newly created key and SSL certificate, create a new <code>VirtualHost</code> with the configuration below: | |||
<htmlet nocache="yes">selfsignedssl-apache</htmlet> | |||
== Other Notes == | |||
Note: Ensure that all keys are not readable to others. chmod 700 the ssl directory and chmod 600 all the keys. | Note: Ensure that all keys are not readable to others. chmod 700 the ssl directory and chmod 600 all the keys. | ||
openssl req -new -x509 -key www.example.com.key -out www.example.com.cert -days 3650 -subj /CN=www.example.com | openssl req -new -x509 -key www.example.com.key -out www.example.com.cert -days 3650 -subj /CN=www.example.com | ||
Revision as of 23:29, 29 March 2015
Generating a Self Signed SSL Certificate
To quickly generate a self-signed certificate, enter a domain name below: <htmlet nocache="yes">selfsignedssl-js</htmlet>
Run the following commands: <htmlet nocache="yes">selfsignedssl-cmd</htmlet>
To configure apache to use the newly created key and SSL certificate, create a new VirtualHost with the configuration below:
<htmlet nocache="yes">selfsignedssl-apache</htmlet>
Other Notes
Note: Ensure that all keys are not readable to others. chmod 700 the ssl directory and chmod 600 all the keys.
openssl req -new -x509 -key www.example.com.key -out www.example.com.cert -days 3650 -subj /CN=www.example.com