Provide old cert bundle.
diff --git a/certifi/__init__.py b/certifi/__init__.py index 551eb97..f415e40 100644 --- a/certifi/__init__.py +++ b/certifi/__init__.py
@@ -1,3 +1,3 @@ -from .core import where +from .core import where, old_where __version__ = "2015.09.06"
diff --git a/certifi/core.py b/certifi/core.py index 31d4ada..e7ae2ee 100644 --- a/certifi/core.py +++ b/certifi/core.py
@@ -7,8 +7,16 @@ This module returns the installation location of cacert.pem. """ - import os +import warnings + + +class DeprecatedBundleWarning(DeprecationWarning): + """ + The weak security bundle is being deprecated. Please bother your service + provider to get them to stop using cross-signed roots. + """ + def where(): f = os.path.split(__file__)[0] @@ -17,6 +25,10 @@ def old_where(): + warnings.warn( + "The weak security bundle is being deprecated.", + DeprecatedBundleWarning + ) f = os.path.split(__file__)[0] return os.path.join(f, 'weak.pem')