I would like to Expand an existing certificate by adding a new subdomain.
eg:
Currently contains: alpha.test.com
Would like to add: beta.test.com
I have two questions about this.
-
Each goes to a different site/folder on the server
alpha.test.com goes to /var/www/alpha.test.com/html
beta.test.com goes to /var/www/beta.test.com/htmlSo does the following command look right:
sudo letsencrypt certonly -a webroot --expand --webroot-path=/var/www/alpha.test.ca/html -d alpha.test.ca --webroot-path=/var/www/beta.test.ca/html -d beta.test.ca
In my nginx/sites-enabled, I am forcing all non-https traffic to https with the following:
return 301 https://$server_name$request_uri;
Do I need to turn this off for this expansion - and for that matter - each time I need to renew the cert?
My initial tests are giving me invalid response warnings.
Can I force it to call https://alpha.test.com/.well-known… ?