From bf4b962f4b92a1633835b2d17974f18de2d61620 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Sun, 25 Oct 2020 16:12:38 -0700 Subject: [PATCH] be more verbose in the 102 deprecation notice (#5505) --- src/cryptography/hazmat/bindings/openssl/binding.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/cryptography/hazmat/bindings/openssl/binding.py b/src/cryptography/hazmat/bindings/openssl/binding.py index bf6f12029b5b..f6bf93729118 100644 --- a/src/cryptography/hazmat/bindings/openssl/binding.py +++ b/src/cryptography/hazmat/bindings/openssl/binding.py @@ -181,8 +181,11 @@ def _verify_openssl_version(lib): else: raise RuntimeError( "You are linking against OpenSSL 1.0.2, which is no longer " - "supported by the OpenSSL project. You need to upgrade to a " - "newer version of OpenSSL." + "supported by the OpenSSL project. To use this version of " + "cryptography you need to upgrade to a newer version of " + "OpenSSL. For this version only you can also set the " + "environment variable CRYPTOGRAPHY_ALLOW_OPENSSL_102 to " + "allow OpenSSL 1.0.2." )