New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Why is autoSSL so flakey?

Started by DanTappan, March 31, 2020, 11:22:04 PM

Previous topic - Next topic

DanTappan

I'm having lots of problems with autoSSL
- can't add a www.DOMAIN to a certificate after creating certificate without it
- errors like "2020-03-31 06:03:12 DNS Redirection problem for DOMAIN with www and without it" when I try to renew
(there is no apparent problem in DNS. The www.DOMAIN is a CNAME for DOMAIN which points to the server address)

I can't find the configuration files for autoSSL to figure out what is going on. It seems to use LetsEncrypt under the covers but the files are not in /etc/letsencrypt.

This seems much more complex than just using LetsEncrypt directly, and having one certificate which includes all host names but the complexity of the way CWP sets up vhosts seems to make this hard. Is something broken on my system or is it autoSSL? Should I just turn off autoSSL altogether and try to use LetsEncrypt directly?

ejsolutions

#1
Two threads about the same thing?  ::)

Plus this one:
http://forum.centos-webpanel.com/index.php?topic=8544

DanTappan

I figured out the first order issue. Documenting it here in case it's useful to someone else.

Apparently autoSSL requires that both DOMAIN and www.DOMAIN be A records. If www.DOMAIN is a CNAME pointing to DOMAIN then autoSSL will fail with a variety of unhelpful error messages.

Still wondering where the autoSSL configuration files are, and why it just doesn't use standard LetsEncrypt configuration.

ejsolutions

Useful information for those who still use a www subdomain.

Solsku

Quote from: DanTappan on March 31, 2020, 11:59:21 PM
Apparently autoSSL requires that both DOMAIN and www.DOMAIN be A records. If www.DOMAIN is a CNAME pointing to DOMAIN then autoSSL will fail with a variety of unhelpful error messages.

Can someone from the development team confirm this?

I can install certificates just fine with www-subdomain, they just get excluded from the certificate in the renew process.

Sandeep