diff --git a/certbot/certbot/_internal/storage.py b/certbot/certbot/_internal/storage.py index d69dd6a00..d1dadae61 100644 --- a/certbot/certbot/_internal/storage.py +++ b/certbot/certbot/_internal/storage.py @@ -33,7 +33,7 @@ logger = logging.getLogger(__name__) ALL_FOUR = ("cert", "privkey", "chain", "fullchain") README = "README" -CURRENT_VERSION = util.get_strict_version(certbot.__version__) +CURRENT_VERSION = pkg_resources.parse_version(certbot.__version__) BASE_PRIVKEY_MODE = 0o600 @@ -457,7 +457,7 @@ class RenewableCert(interfaces.RenewableCert): conf_version = self.configuration.get("version") if (conf_version is not None and - util.get_strict_version(conf_version) > CURRENT_VERSION): + pkg_resources.parse_version(conf_version) > CURRENT_VERSION): logger.info( "Attempting to parse the version %s renewal configuration " "file found at %s with version %s of Certbot. This might not "