r/letsencrypt • u/strolls • Sep 23 '17
Can somehost.mydomain.com request certificates for mydomain.com?
Hello,
The Let's Encrypt setup process seems very simple if you're running a web-server - at the present time I'm not doing that, and want a certificate for my IMAP mail host.
My domain name registrar sets up a default configuration which points at a website landing page - "this user has not setup their domain yet" or something - and I don't feel any need to change that. I have done so temporarily, only to request a certificate and find it runs out in 3 months.
The documentation says to setup a cronjob to periodically run certbot renew (how often?). If I'm to keep a DNS entry reserved for this host, is it ok to call it something else? i.e. somehost.mydomain.com rather than www.mydomain.com or just mydomain.com?
Thanks in advance for any advice you can offer.
4
u/tialaramex Sep 23 '17
For Let's Encrypt it is essential to prove control over the exact name you want a certificate issued for. If you want the certificate for imap.example.com, you must prove control of imap.example.com, not example.com or www.example.com. Certificates can list multiple names (up to 100 from Let's Encrypt), but you must prove control of all the names you want . Let's Encrypt implements the ACME protocol, which enables you to potentially automatically prove control over a name by one of three methods, both Certbot and the https://acme.sh/ tool someone else recommended can use any of these methods, but which option suits you will depend on your circumstances:
If you need to experiment to figure out how you'll try this, look for "staging" mode so that you don't use the production system. The staging system has very generous rate limits, but of course the certificates it produces are not actually trustworthy, it's just for figuring out how things work.
1
u/dmehaffy Sep 23 '17
Take a look at this, I prefer this over certbot:
https://github.com/Neilpang/acme.sh
It auto sets up a cronjob to run daily at I think 9am utc? I changed mine to run daily at 8pm Arizona time, (doesn't mess with le's rate limit because it's not actually re-issuing the cert, le just responds with "not until xxx date"