Configuring HTTPS with a self-signed cert under Docker on local #1783
-
I've been fighting with this for a couple of hours and hoping someone has done this before and can help me out. My docker command:
Self-signed a cert with: Current config (github is killing the proper whitespace, but it's there):
gRPC fails to start due to a cert failure:
I'm just trying to test out Google authentication as the last thing I need to confirm works before moving forward with this in our environment, but I can't get past the cert issue as Google requires HTTPS for the redirect URL. Any help would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hey @jeremy-allocate 👋 I haven't actually attempted this yet, but I suspect this has to do with the fact your certificates haven't actually been generated for the localhost domain and then signed by your trusted CA chain. Checkout this example for generating certificates for localhost: https://mjswensen.com/blog/how-to-develop-over-https-on-localhost/ Apologies if I am about to explain a bunch of stuff you already know: Creating valid certficates for localhost is actually quite hard. You need your certificates to contain the domain you're hosting under (localhost). However, you also need to make sure your certificates are signed by a valid CA in the local chain. So to get a full end to end working certificate setup, you have to install a CA in your local chain that you actually control. If you're just trying to validate Flipt, Google actually does accept
This generates a URL I can experiment with nicely instead of localhost (plus it is HTTPS terminated). |
Beta Was this translation helpful? Give feedback.
Sorry I meant specify
http
instead ofhttps
. I mispoke there saying drop the http scheme. I meant drop in thehttp
scheme.What a poor turn of phase for me to both use there and typo to mean the complete opposite 🤦
Did you try it with
http://localhost:8081/...
?