1
0
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:
Liam Marshall
2015-10-04 10:39:38 -05:00
parent 74b2e3bc51
commit 32da607ae5

View File

@@ -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.