Use EC certificates with Let's Encrypt
Since Let's Encrypt does not support EC certificates from the command line, you have to feed it a CSR that uses EC primes. That CSR can then be fed to certbot.
Usage:
./create.sh -s one.example.org [two.example.org three.example.org ..]
What it does:
- Create a date-prefixed private key + CSR with a prime256v1 curve (adapt the variable
CURVE
to suit your needs). - Symlink the private key and CSR to their canonical names ($SITE.key.pem and $SITE.csr.pem)
- Use the CSR from step 2 to request a Let's Encrypt certificate (with SAN, and with more if multiple sites are given).
Usage:
./renew.sh -s one.example.org
What it does:
- Test if we can read the fullchain for given site.
- If it can read the fullchain, it will find out all SANs for the existing certificate
- Renew the certificate with Let's Encrypt
Yes