Hello,
I use apache.
I need to set up 245 subdomains, and the limit is 100 so first I add all 245 subdomains like “ServerAlias”
<VirtualHost *:80>
ServerAdmin info@mydomain.com
ServerName mydomain.com
ServerAlias www.mydomain.com
ServerAlias ad.mydomain.com
ServerAlias ae.mydomain.com
ServerAlias af.mydomain.com
ServerAlias ag.mydomain.com
Then i run: certbot --apache
and I select: 1,2,3,4…100
All fine… then I run again: certbot --apache
and I select: 101,102…198 …
Is doing fine but I get an red error: Failed redirect for im.mydomain.com Unable to set enhancement redirect for im.mydomain.com
And the SSL is not working
These steps are correct?
Y tried with “ServerAlias *.mydomain.com” … I do’it manual with “certbot-auto” and he create a cert but none of the subdomain works on ssl.
root@MYDOMAIN ~/certbot # ./certbot-auto certonly --manual -d *.MYDOMAIN.com --preferred-challenges dns-01 --server https://acme-v02.api.letsencrypt.org/directory
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator manual, Installer None
Obtaining a new certificate
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/MYDOMAIN.com-0001/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/MYDOMAIN.com-0001/privkey.pem
Your cert will expire on 2019-06-02. To obtain a new or tweaked
version of this certificate in the future, simply run certbot-auto
again. To non-interactively renew *all* of your certificates, run
"certbot-auto renew"
- If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le
root@MYDOMAIN ~/certbot #
Then I look at the certificates (the second one was made with “certbot --apache”)
OK, I fix this, first with “certbot --apache” then with
certbot certonly --manual -d MYDOMAIN.com -d *.MYDOMAIN.com --agree-tos --no-bootstrap --manual-public-ip-logging-ok --preferred-challenges dns --server https://acme-v02.api.letsencrypt.org/directory
In the .conf I have:
<VirtualHost *:80>
ServerAdmin info@mydomain.com
ServerName mydomain.com
ServerAlias *.mydomain.com
DocumentRoot /var/www/mydomain.com/www