Skip to content

Instantly share code, notes, and snippets.

@victerryso
Last active February 22, 2016 03:14
Show Gist options
  • Save victerryso/0d9acb33a4d6b170b491 to your computer and use it in GitHub Desktop.
Save victerryso/0d9acb33a4d6b170b491 to your computer and use it in GitHub Desktop.
Create SSL Certificate

Create SSH Certificate

Terminal

$ ssh root@000.000.000.000
$ openssl req -newkey rsa:2048 -nodes -keyout domain.key -out domain.csr

Start SSL

  • Go to Start SSL
  • Click "Sign up"
  • Click "Authenticate"
  • Click "Certificates Wizard"
  • Click "Web Server SSL/TLS Certificate"
  • Grab a verification
  • Grab it from the email addressed and submit
  • Enter your hostname
  • Copy and paste the contents from domain.csr to the Certificate Signing Request textarea
  • Submit
  • Download the ZIP file

Terminal

$ scp 2_domain.crt root@000.000.000.000:/domain.crt

Apache2 SSL Settings

...

SSLEngine on
SSLCertificateFile domain.crt
SSLCertificateKeyFile domain.key

...

Terminal

$ service apache2 restart

Notes

  • domain.csr - Certificate Signing Request - for the website(Start SSL) to Sign
  • domain.key - Private Key - used to link the CSR and CRT
  • domain.crt - The Certificate - given by the website in response to the CSR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment