Skip to content
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

Add enable_unsafe_legacy_renegotiation param to work around #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

markrileybot
Copy link

requests.exceptions.SSLError: HTTPSConnectionPool(host='vpn.mycompany.biz', port=443): Max retries exceeded with url: /global-protect/prelogin.esp (Caused by SSLError(SSLError(1, '[SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:997)')))

```
requests.exceptions.SSLError: HTTPSConnectionPool(host='vpn.mycompany.biz', port=443): Max retries exceeded with url: /global-protect/prelogin.esp (Caused by SSLError(SSLError(1, '[SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:997)')))
```
@nemo-44
Copy link

nemo-44 commented Dec 3, 2023

Just fyi... the following approach does not require any code changes:

export OPENSSL_CONF=openssl.cnf
gp-okta.py

Contents of openssl.cnf:

openssl_conf = openssl_init

[openssl_init]
ssl_conf = ssl_sect

[ssl_sect]
system_default = system_default_sect

[system_default_sect]
Options = UnsafeLegacyRenegotiation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants