Hi,
I have attempted to move to CloudFlare for my dns provider and use Nginx Proxy Manager to point at my ISPConfig3 VM but also have the option using the proxy manager to point sub domains to other internal hosts.
The problem im having is with the certs. CloudFlare gives all the domains a free ssl cert anyway but has the option for full end to end encryption. This seems to want SSL between the proxy and the host and fails if i disable SSL.
The problem comes when i try and register a new cert for a domain that used to live on ISPConfig. So the cert still exists and hasnt yet expired.
When you request a new cert on Ngnix Proxy Manager you just get an Internal Failure message. So i looked in the docker logs and tried to run the command manually and i get this:
root@Tower:~# docker exec -it NginxProxyManager /bin/bash
bash-5.0# certbot certonly --non-interactive --config "/etc/letsencrypt.ini" --cert-name "npm-15" --agree-tos --email "bignellrp@gmail.com" --preferred-challenges "dns,http" --domains "www.northamptonmorrismen.co.uk"
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for www.northamptonmorrismen.co.uk
Using the webroot path /config/letsencrypt-acme-challenge for all unmatched domains.
Waiting for verification...
Challenge failed for domain www.northamptonmorrismen.co.uk
http-01 challenge for www.northamptonmorrismen.co.uk
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: www.northamptonmorrismen.co.uk
Type: unauthorized
Detail: Invalid response from
https://www.northamptonmorrismen.co.uk/.well-known/acme-challenge/AlslvQOqBlSQusvOE_U4lM_G5SMdsDcu2n-GVRHC5Jo
[2606:4700:3037::6815:3be5]: "\n<ht"To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.