Skip to content

Instantly share code, notes, and snippets.

@PixiBixi
Last active May 6, 2017 15:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PixiBixi/d0e329aeb3852828c7e6 to your computer and use it in GitHub Desktop.
Save PixiBixi/d0e329aeb3852828c7e6 to your computer and use it in GitHub Desktop.
Génération de SSL

Pour générer ses certificats auto-signés d'une manière propre

Créer la clé privé RSA

openssl genrsa -out $ndd.$tld.key 4096

Générer l'autorité

openssl req -new -sha256 -key $ndd.$tld.key -out $ndd.$tld.csr

Créer le dhparam

openssl dhparam -out dhparam.pem 4096

Créer le certificat

openssl x509 -signkey $ndd.tld.key -in $ndd.$tld.csr -req -days 365 -out $ndd.$tld.crt

Informations à rentrer :

Country Name (2 letter code) [AU]: FR 
State or Province Name (full name) [Some-State]: Paris
Locality Name (eg, city) []: Paris
Organization Name (eg, company) [Internet Widgits Pty Ltd]: $ndd.tld Organisation
Organizational Unit Name (eg, section) []: $ndd.tld
Common Name (e.g. server FQDN or YOUR name) []: *.$ndd.tld
Email Address []: contact@facebook.com
Copy link

ghost commented Mar 20, 2016

Hi! Do you have an email address I can use to contact you?

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