From b5bac4870a2c2abefd294615b6648349601e6d8c Mon Sep 17 00:00:00 2001 From: Kishi85 Date: Fri, 5 Apr 2019 11:15:43 +0200 Subject: [PATCH] authority.v1: add deprecation warning ACMEv1 will be deprecated by letsencrypt.org in 2021* therefore add a deprecation warning on object creation * https://community.letsencrypt.org/t/end-of-life-plan-for-acmev1/88430 --- acertmgr/authority/v1.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/acertmgr/authority/v1.py b/acertmgr/authority/v1.py index 3d0697c..4871e88 100644 --- a/acertmgr/authority/v1.py +++ b/acertmgr/authority/v1.py @@ -21,6 +21,8 @@ class ACMEAuthority(AbstractACMEAuthority): # @param config Configuration data # @param key Account key data def __init__(self, config, key): + log('You currently use ACMEv1 which is deprecated, consider using ACMEv2 (RFC8555) if at all possible.', + warning=True) AbstractACMEAuthority.__init__(self, config, key) self.registered_account = False self.ca = config['authority']