I am starting to play around with this, using the Visual Studio Code IDE.
One issue I have is that when I access a URL with a self signed certificate, it generates an error.
requests.exceptions.SSLError: HTTPSConnectionPool(host='zac.ziti', port=8888): Max retries exceeded with url: / (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')))
I know with Golang.. there are ways to disable this error.. though I am unsure of how you do this in Python.
Any tips?
I found some insights here… as it appears to be a Python issue
Actually… the solution being offered may not work… because I need to use the ziti context instead.
Open to suggestions on how to resolve this.
All ziti connections are just “magical” pipes for your applications bits. All ziti does is transport your bits from one place to another, just very securely. Ziti itself, once configured, disappears. I think getting past this mental hurdle will be really helpful for you.
Start by making a pure python app that serves https. After you do that, layer on ziti. I’m sure there are many python https guides out there to get you through this stage.
Once you have a working python app that’s delivering https the way you want it, add ziti. If something breaks you can’t figure out, that’s when we can try to help.
1 Like
Ahh… I think I know what is happening…I need to get the SSL working in Python first… then do the ziti magic.
Got it…
1 Like
Yessir, that’s it exactly!
Success… my first Python SDK demo all working… which was my first Python http service at the same time
1 Like