urllib certificate verify issues with pyenv on Python 3.10.7, CentOS 7, Alt OpenSSL 1.1.1 #2475
-
Steps TakenWe have successfully installed Python 3.10.7 on CentOS 7 via pyenv after days of trying. We are using the latest stable release of OpenSSL 1.1.1 which we compiled from source and stuck at /usr/local/ssl. We are then able to install Python 3.10.7 via pyenv with the following option set:
This worked! Finally! After days of research. Error with urllibHowever, when we test urllib to a SSL site, regardless of the site, we have urllib errors "CERTIFICATE_VERIFY_FAILED". As a note this error occurs on every version of Python I've tested with not just the 3.10.7 we're trying to use. 3.6.6, 3.7.14, 3.8.14, 3.9.14, 3.10.7 all compiled using the CONFIGURE_OPTS above. So it would seem to not be a Python issue and how it is being installed. OpenSSL Version
Urllib test
Detailed StepsOpenSSL 1.1.1
Python 3.10.7 via pyenv:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Did you import root certificates into your custom OpenSSL installation? Each OpenSSL installation can have its own store (this is probably a configure option with the default being somewhere under installation prefix). https://stackoverflow.com/questions/4138139/how-to-find-out-the-path-for-openssl-trusted-certificates |
Beta Was this translation helpful? Give feedback.
Did you import root certificates into your custom OpenSSL installation? Each OpenSSL installation can have its own store (this is probably a configure option with the default being somewhere under installation prefix). https://stackoverflow.com/questions/4138139/how-to-find-out-the-path-for-openssl-trusted-certificates