Is there a simple way for me to use the files as generated by the Let's Encrypt Certbot? Or can I only use the Let's Encrypt script included in Hiawatha?
I've downloaded Let's Encrypt via git, it installs in the /opt/letsencrypt directory. Then used the ./letsencrypt-auto script to register and download certificates for my domain. Easy as pie, right.
The certificates are set up in /etc/letsencrypt/live/mydomain.com/ What you get are the following symlinks:
cert.pem
chain.pem
fullchain.pem
privkey.pem
These files point to a directory where the actual files are located. However, this makes it easy to renew the certs automatically, as they automatically point to the most recent one.
"Each key (.pem) file serves a different purpose:
cert.pem: server certificate only.
chain.pem: root and intermediate certificates only.
fullchain.pem: combination of server, root and intermediate certificates (replaces cert.pem and chain.pem).
privkey.pem: private key (do not share this with anyone!)."
When I use TLScertfile = /path/to/fullchain.pem Hiawatha tells me "Error loading private key"
When I use TLScertfile = /path/to/privkey.pem Hiawatha tells me "Error loading X.509 certificate"
Just to experiment, I tried:
TLScertfile = /path/to/privkey.pem
TLScertfile = /path/to/fullchain.pem
But then I got BOTH error messages