4 ms·
You can create a certificate with "example.com" as the subject and "www.example.com" as subject alternative name (SAN). Here is an example certbot command:
by susam 8y ago
You can create a certificate with "example.com" as the subject and "www.example.com" as subject alternative name (SAN).
Here is an example certbot command:
certbot certonly -n --agree-tos -m example@example.com --webroot -w /var/www/example.com -d 'example.com,www.example.com'
The argument to the `-d` option defines all the subject alternative names.
- djsumdog 8y agoYea, this is what I do. I wrote a script to automate the process too: https://github.com/sumdog/bee2/blob/master/dockerfiles/CertBot/certbot-domains.py https://github.com/sumdog/bee2/blob/master/dockerfiles/CertB...