request from https to http

I have my domain in Cloudflare which I use as DNS. From my website I want to make requests to a local server running on a raspberry through the IP. I get an error because the website is https and the raspberry is http. If I generate an auto-generated ssl, would it work or would I have to create an ssl with a CA like Let's encrypt? If I do it with let's encrypt, do I have to do something in cloudflare so that the raspberry domain is ip.mydomain.com?
1 Reply
Chaika
Chaika4mo ago
If it's a local server as in on your local network/self-hosted, you'd need to port forward/get past NAT + get SSL setup (CF offers 15 year long trusted by proxy Origin Certificates under SSL/TLS -> Origin Server) Cloudflare Tunnels: https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/get-started/create-remote-tunnel/ Are an easier way for http services, they run on your pi/device and connect out to Cloudflare's edge, no need to worry about port forwarding/NAT, and you can have it connect over http to your origin/not configure certs since it's just the service connecting locally, ex: User -> Encrypted over Internet -> CF -> Encrypted over Internet -> Tunnel (cloudflared) running on host -> unencrypted over same machine or Lan -> service
Cloudflare Docs
Create a remotely-managed tunnel (dashboard) | Cloudflare Zero Trus...
Follow this step-by-step guide to get your first tunnel up and running using Zero Trust.
Want results from more Discord servers?
Add your server