Open jamesone opened 6 years ago
Probably a bit late but I came here looking for the answer and figured it out eventually:
Firstly, you specify additional domains by adding extra -d
options to the original commandline. So in your example you'd have -d example.com -d www.example.com
. As you've already run it certbot
will ask you if you want to expand the existing certificate. Just say yes.
Once that is done you can specify the additional domains in the Cloudfront Alternate names (CNAMEs) field when editing the distribution.
Here is the command I tried:
When I add the
www.example.com
, it fails. If I just run this withexample.com
, it works. It logs the following:Note that I added
www.example.com
AFTER initially setting up the cert withexample.com
.