Tech:SSL certificates

SSL certificates and CSRs can be generated on puppet1 using a shell script (ssl-certificate) to simplify and standardize the process. This can be done only by sre.

LetsEncrypt
Let's Encrypt is a Certificate Authority that issues free SSL certificates. We'll use the certbot client.


 * Generating a CSR:
 * Generating a CSR with extra domains:
 * Generating a LetsEncrypt SSL Certificate:
 * You can also do www. domains too by doing
 * Generating a Wildcard LetsEncrypt SSL Certificate:
 * You can also do domains too by doing
 * Renewing a LetsEncrypt SSL Certificate:
 * To renew a wildcard cert:

The domain is the fully qualified domain name that will be used as the common name in the certificate and will be the issued domain. The -g option generates a LetsEncrypt SSL certificate for the domain, and the -r option renews (regenerates) a LetsEncrypt certificate if the private key exists at the correct location.

For LetsEncrypt certificates, the public and private components are automatically added and pushed to their respective git repositories, both for new certificates and renewals. If you need to completely regenerate a certificate, use the renew option to avoid adding a duplicate entry to certs.yaml.

For CSR/Private key generations, these keys will be located at  and. Private key will need to be added as  in.

For debugging purposes, public keys are handled in.

To remove an LE certificate, run the following: sudo /root/ssl-certificate -d --revoke Then answer yes to all the questions. This will revoke the cert and remove the private key from our system. Then you have to manually remove the public key by deleting the actual key from the certificate's directory, and removing the entry from certs.yaml.

For a non-LE cert, both the public and private keys would have to be removed manually.

ACMEv2 (notably, Wild-card certificate) via Let's Encrypt is supported by our backend LE tool.

Certificate Authority

 * Rule of thumb for acceptable CA on WikiTide is that it is trusted on the latest version of Mozilla Firefox.
 * StartSSL and WoSign are dead. Such is the fate when you make browsers angry.