Creating a self-signed SSL certificate: Difference between revisions

From Notes to self
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
*<code>$ openssl req -new -x509 -sha256 -days 10000 -nodes -out server.crt -keyout server.key</code>
*<code>$ openssl req -new -x509 -sha256 -days 10000 -nodes -out server.crt -keyout server.key</code>
*Enter "." for everything except "Common Name".
*Enter "." for everything except "Common Name".
*Put files <code>server.crt</code> and <code>server.key</code> to <code>/etc/httpd/</code> (on Slackware)  
*Put files <code>server.crt</code> and <code>server.key</code> to <code>/etc/httpd/</code> (on Slackware) and set their permissions to 600.


[[Category: Linux]]
[[Category: Linux]]

Revision as of 00:21, 11 June 2015

  • $ openssl req -new -x509 -sha256 -days 10000 -nodes -out server.crt -keyout server.key
  • Enter "." for everything except "Common Name".
  • Put files server.crt and server.key to /etc/httpd/ (on Slackware) and set their permissions to 600.