SSL: Difference between revisions
Jump to navigation
Jump to search
(Created page with "'''Self Signed Certificate'''<br> Easiest way to create a self-signed certificate: <pre> openssl req -subj “/CN=domain.com” -new -newkey rsa:4096 -days 3650 -nodes -x509 ...") |
No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
=Self Signed Certificate= | |||
Easiest way to create a self-signed certificate: | Easiest way to create a self-signed certificate for domain.com: | ||
<pre> | <pre> | ||
openssl req -subj | openssl req -subj "/CN=domain.com" -new -newkey rsa:4096 -days 3650 -nodes -x509 -sha512 -keyout private.key -out public.key | ||
</pre> | </pre> | ||
If you want to add more domain names, just add more /CN=example.com between the double quotes. The last common name will be the main common name.<br/> | |||
Remember: keep your private.key private. Change rights to the file accordingly so that only the application you need it in can read it. |
Latest revision as of 14:11, 25 June 2015
Self Signed Certificate
Easiest way to create a self-signed certificate for domain.com:
openssl req -subj "/CN=domain.com" -new -newkey rsa:4096 -days 3650 -nodes -x509 -sha512 -keyout private.key -out public.key
If you want to add more domain names, just add more /CN=example.com between the double quotes. The last common name will be the main common name.
Remember: keep your private.key private. Change rights to the file accordingly so that only the application you need it in can read it.