Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't connect to https://localhost with ngrok (using TLS / SSL)

Tags:

ssl

ngrok

tls1.2

I've seen multiple threads on this but still can't get up and running.

I've tried TLS and TCP connections, but the main issue is that browsers cannot understand these URLs (e.g. tls://2456xxxx.ngrok.io).

Once I set up a TLS or TCP connection to https://localhost, how can I actually connect through a browser?

(I need to test Stripe's PaymentRequest feature which requires a localhost connection with a green check.)

Threads on this issue that don't seem to answer this question: https://github.com/inconshreveable/ngrok/issues/194 https://github.com/inconshreveable/ngrok/issues/123

like image 613
Freewalker Avatar asked Mar 21 '18 21:03

Freewalker


1 Answers

I got this to work by turning off https on my local server. If you run a plain http local server on 8080 and then run ./ngrok http 8080 you will be given a signed https ngrok URL that will tunnel to your http server.

like image 164
jweob Avatar answered Sep 30 '22 05:09

jweob