mirror of
https://github.com/certbot/certbot.git
synced 2026-01-23 07:20:55 +03:00
crypto_util: Remove asn1_generalizedtime_to_dt(...)
Not used by any other code AFAIK (ack'd entire codebase).
This commit is contained in:
@@ -274,11 +274,6 @@ def asn1_generalizedtime_to_dt(timestamp):
|
||||
return datetime.datetime.strptime(timestamp, '%Y%m%d%H%M%SZ')
|
||||
|
||||
|
||||
def pyopenssl_x509_name_as_text(x509name):
|
||||
"""Convert `OpenSSL.crypto.X509Name` to text."""
|
||||
return "/".join("{0}={1}" for key, value in x509name.get_components())
|
||||
|
||||
|
||||
def dump_pyopenssl_chain(chain, filetype=OpenSSL.crypto.FILETYPE_PEM):
|
||||
"""Dump certificate chain into a bundle.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user