-
-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PAC download with custom CA #224
Comments
The current version of Px on Windows uses libcurl and comes with its own cert bundle. You could append your internal CA to the crt file (in The way to fix this would be to add CURLSSLOPT_NATIVE_CA to the SSL options but it's unclear if it will work - curl/curl#14869 Oh, and that's a really bad stack trace - it should say that the cert verification failed. That needs to be improved as well. |
Better answer in #219. Leveraging a build that uses schannel will solve this issue and is already on the roadmap - switch to pymcurl as the backend. I do need to make sure I update pymcurl to not set CAINFO on Windows so that it uses the system CA but also have some way to use the bundled CA if preferred for some reason. |
This is being fixed in mcurl v8.9.1.0. Px v0.10.0 will use mcurl as the backend and use schannel so custom certs will get picked up when added to the OS. CURLSSLOPT_NATIVE_CA is only relevant to WolfSSL, GnuTLS and OpenSSL so not relevant to us. |
Hello @genotrance, We are happily awaiting the release v0.10.0 and going to provide some feedback, whether it solves our problem. If we should test something, also in alpha or beta stage, just give us a ping here. |
v0.10.0 is out! |
Hello,
we need to use PX with a PAC file. The PAC file in our company is provided via an internal web server, what is using a TLS cert, that was signed by the internal CA.
Actually, this isn't a problem (normally), as the CA is part of the trust store of our windows 11 machines. But it seems like px isn't using this trust store and fails with a stack trace. If i download the PAC file manually and specify the local path, everything works fine.
Heres the stacktrace i was talking about:
I am wondering, whether px can be "convinced" to use the system trust store or ignore the fact, that it cannot validate the TLS certificate (which is indeed insecure, but we are not using it in a production use case).
The text was updated successfully, but these errors were encountered: