HTTPS Connection Cloudflare Tunnel - Handshake Error

Hello,

I’ve setup a Cloudflare tunnel to facilitate some testing of services locally before we deploy them to production. Currently the setup is Browser → CF Tunnel → Local Service. The tunnel has the following configuration:

tunnel: {tunnel name}
credentials-file: {path to file}.json

ingress:
    - hostname: api.dev.example.com
      service: http://localhost:1000
    - service: http_status:404

Calling HTTP works fine, requests are proxied through to the local machine. However, when calling https, the following error is encountered:

curl: (35) error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure

There is an edge certificate created for ‘*.example.com, example.com’ that’s active. I’m not sure why the https connection is not working. Can I configure Cloudflare to handle the https connection using the edge certificate, or do I need to setup a proxy to handle the https connection? (Browser → CF Tunnel → NGINX → Local Service)

Cloudflared can handle the HTTPS connections. Replace service: http://localhost:1000 with service: https://localhost:1000

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.