Quick addition I forgot to mention, I did follow the directions from Taylor here https://medium.com/@taylorotwell/wildcard-letsencrypt-certificates-on-forge-d3bdec43692a.
Unable to obtain LetsEncrypt SSL cert (some challenges have failed)
Hey all
I'm trying to deploy a site to Forge and running into an issue when trying to add an SSL certificate using LetsEncrypt.
I'm using Cloudflare as my DNS provider and DigitalOcean as my server provider. The DO server has a floating IP address which is what I added to Cloudflare's DNS records.
Below is the error output, any help would be greatly appreciated.
--2019-06-18 19:47:26-- https://forge-certificates.laravel.com/le/####/####?env=production
Resolving forge-certificates.laravel.com (forge-certificates.laravel.com)... ###.##.#.##, ###.##.#.##, ####:####:##::####:###, ...
Connecting to forge-certificates.laravel.com (forge-certificates.laravel.com)|###.##.#.##|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘letsencrypt_script1560887246’
0K .. 26.4M=0s
2019-06-18 19:47:26 (26.4 MB/s) - ‘letsencrypt_script1560887246’ saved [2746]
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator dns-cloudflare, Installer None
Obtaining a new certificate
Performing the following challenges:
dns-01 challenge for justesen.tech
dns-01 challenge for justesen.tech
Unsafe permissions on credentials configuration file: letsencrypt/creds.ini
Waiting 10 seconds for DNS changes to propagate
Waiting for verification...
Challenge failed for domain justesen.tech
Challenge failed for domain justesen.tech
dns-01 challenge for justesen.tech
dns-01 challenge for justesen.tech
Cleaning up challenges
Some challenges have failed.
cp: cannot stat '/etc/letsencrypt/live/certificate/privkey.pem': No such file or directory
cp: cannot stat '/etc/letsencrypt/live/certificate/fullchain.pem': No such file or directory
Alright, so figured it out.
Needed to change Cloudflare's SSL setting to "Flexible" to reach the web server (Crypto -> SSL). You can then issue an SSL cert, once that's done change the SSL settings on Cloudflare back to "Full" per the articles recommendations.
Please or to participate in this conversation.