Skip to content

Instantly share code, notes, and snippets.

@pitpit
Last active August 29, 2015 14:19
Show Gist options
  • Save pitpit/4cc2a9a725e05fdc8428 to your computer and use it in GitHub Desktop.
Save pitpit/4cc2a9a725e05fdc8428 to your computer and use it in GitHub Desktop.
Setup SSL from Synalabs with nginx

Some info : https://www.digitalocean.com/community/tutorials/how-to-create-a-ssl-certificate-on-nginx-for-ubuntu-12-04

or here : https://support.globalsign.com/customer/portal/topics/538394-nginx/articles

  • Create a CSR end a private key ( (/etc/nginx/ssl). Take care to do it using sha256 (instead of sha1)
openssl req -out youdomain.csr -new -newkey rsa:2048 -nodes -sha256 -keyout youdomain.key
  • Submit CSR to Synalabs
  • Validate email sent from ssl authority (globalsign, alpha ssl...)
  • Wait for certificate (CRT)
  • Copy certificate, intermediate certificate et root certificate onto your server (/etc/nginx/ssl)
  • Create a bundle of the 3 certificates
cat yourdomain.crt intermediate_domain_ca.crt root_ca.crt > yourdomain.bundle.crt

Mise en place du dhparam

attention, opération longue

cd /etc/nginx/ssl
openssl dhparam -out dhparam.pem 4096

Mettre en place le paramètre suivant dans le vhost nginx

ssl_dhparam /etc/nginx/ssl/dhparam.pem;

To test SSL : https://sslcheck.globalsign.com/fr/sslcheck and https://www.ssllabs.com/ssltest/index.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment