TLS handshake error-Let's Encrypt #1347
Replies: 4 comments 2 replies
|
I have the same problem. config/environments/production.rbRails.application.configure do
config.assume_ssl = true
config.force_ssl = true
endconfig/deploy.ymlproxy:
ssl: true
host: alpha.REDACTED.comCloudflare DNSCloudflare TLSProxy logFirewallI am able to connect to the server using http via Cloudflare: I am also able to connect to the server using http directly: |
|
I was able to find a solution in the thread here: Turns out that I had a Cloudflare WAF page rule that initiated a browser challenge to visitors from some country that happened to be the country that LetsEncrypt issues a request from to verify domain ownership. |
|
for anyone facing this issue with CloudFlare. this is the solution. production.rb: remove your current DNS settings for @ and www. or other subdomains. Than add again, without any proxy on CloudFlare. then deploy your app, then open proxies. CloudFlare had to be reseted it turns out, as I mentioned above. |
|
I ran into a similar issue where my site's certificate expired (managed by Kamal / Let's Encrypt) and wasn't renewing. The symptom was 522 timeouts when visiting the site (which is behind Cloudflare). It wasn't Kamal's fault (although it would have been great if it informed me somehow of the issue), it was because I added a rule in the Cloudflare WAF/security settings (Security > Security rules), which blocked Let's Encrypt's validation servers. The fix is to make sure "When incoming requests match…"
As I was missing the second part, LE validation servers couldn't reach the site, the ACME challenge failed, certificate renewal failed silently, and expired after 90 days. After expiry, LE's rate limiting of 5 failed validations/domain/hour got triggered, and the account also got paused. Recovered like this:
|



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I have deployed my application and it's fine when
ssl: falseunder proxy.Now I have to do
ssl: true.But getting error:
Server Setup:
Have checked my server's both Port 80 and 443 is showing opened on https://portchecker.co/ .
Server transfer request to VM where the application had been deployed.
I have a server's port (abcd) which map with NAT to VM's port (443).
I also have another port (wxyz) which map with NAT to VM's port (80).
All reactions