Difference between revisions of "Ssl"

From Wasya Wiki
Jump to: navigation, search
Line 1: Line 1:
 +
 +
=== for namecheap stuff ===
  
 
From: https://www.namecheap.com/support/knowledgebase/article.aspx/9446/0/apache-opensslmodsslnginx
 
From: https://www.namecheap.com/support/knowledgebase/article.aspx/9446/0/apache-opensslmodsslnginx
Line 10: Line 12:
 
Don't forget to chmod +x, the user is www-data, verify with https://www.sslshopper.com/ssl-checker.html#hostname=https://wasya.co/
 
Don't forget to chmod +x, the user is www-data, verify with https://www.sslshopper.com/ssl-checker.html#hostname=https://wasya.co/
  
== Another workflow ==
+
== Another workflow (local apache) ==
 
From: https://medium.freecodecamp.org/how-to-get-https-working-on-your-local-development-environment-in-5-minutes-7af615770eec
 
From: https://medium.freecodecamp.org/how-to-get-https-working-on-your-local-development-environment-in-5-minutes-7af615770eec
 
  openssl genrsa -des3 -out rootCA.key 2048
 
  openssl genrsa -des3 -out rootCA.key 2048
 
  openssl req -x509 -new -nodes -key rootCA.key -sha256 -days 1024 -out rootCA.pem
 
  openssl req -x509 -new -nodes -key rootCA.key -sha256 -days 1024 -out rootCA.pem

Revision as of 04:15, 21 July 2018

for namecheap stuff

From: https://www.namecheap.com/support/knowledgebase/article.aspx/9446/0/apache-opensslmodsslnginx

openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr
 SSLEngine on
 SSLCertificateFile /etc/apache2/ssl/static.piousbox.com/static_piousbox_com.crt
 SSLCertificateKeyFile /etc/apache2/ssl/static.piousbox.com/server.key
 SSLCACertificateFile /etc/apache2/ssl/static.piousbox.com/static_piousbox_com.ca-bundle

Don't forget to chmod +x, the user is www-data, verify with https://www.sslshopper.com/ssl-checker.html#hostname=https://wasya.co/

Another workflow (local apache)

From: https://medium.freecodecamp.org/how-to-get-https-working-on-your-local-development-environment-in-5-minutes-7af615770eec

openssl genrsa -des3 -out rootCA.key 2048
openssl req -x509 -new -nodes -key rootCA.key -sha256 -days 1024 -out rootCA.pem