Python3 "Deprecationwarning: Ssl. Protocol_Tlsv1_2 Is Deprecated Sslcontext = Ssl. Sslcontext(Ssl. Protocol_Tlsv1_2)" Error

Hi i downloaded a tool from github and when I try to run it, I get an alert like this; linkfinder.py:133: DeprecationWarning: ssl.PROTOCOL_TLSv1_2 is deprecated sslcontext = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)

Tool : how to fix this error on python3?

enter image description here --> code

enter image description here --> error

any idea?

1

1 Answer

Please refer the Python 3's SSL documentation.

ssl.PROTOCOL_TLSv1_2

Deprecated since version 3.6: OpenSSL has deprecated all version specific protocols.

Recommendation:

Use either ssl.PROTOCOL_TLS_CLIENT or ssl.PROTOCOL_TLS_SERVER as per your requirement.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest