We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In simplemonitor/Monitors/network.py there is:
simplemonitor/Monitors/network.py
# Note: at time of writing, ssl does not support TLS1.3 ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)
This is giving a warning:
/usr/bin/python3.11 /home/carles/git/simplemonitor-tls-expiry/tls_test.py /home/carles/git/simplemonitor-tls-expiry/tls_test.py:6: DeprecationWarning: ssl.PROTOCOL_TLSv1_2 is deprecated ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2) Process finished with exit code 0
It seems that the recommended way would be using ssl.PROTOCOL_TLS_CLIENT instead of ssl.PROTOCOL_TLSv1_2 (https://docs.python.org/3/library/ssl.html#ssl.PROTOCOL_TLS_CLIENT) which also enables CERT_REQUIRED and check_hostname by default (related to #1622 )
ssl.PROTOCOL_TLS_CLIENT
ssl.PROTOCOL_TLSv1_2
CERT_REQUIRED
check_hostname
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In
simplemonitor/Monitors/network.py
there is:This is giving a warning:
It seems that the recommended way would be using
ssl.PROTOCOL_TLS_CLIENT
instead ofssl.PROTOCOL_TLSv1_2
(https://docs.python.org/3/library/ssl.html#ssl.PROTOCOL_TLS_CLIENT) which also enablesCERT_REQUIRED
andcheck_hostname
by default (related to #1622 )The text was updated successfully, but these errors were encountered: