Use get_names_from_cert in storage.py

This commit is contained in:
Brad Warren 2016-06-08 17:01:54 -07:00
parent 0a707b64ec
commit 2c803eff6a

View file

@ -616,7 +616,7 @@ class RenewableCert(object): # pylint: disable=too-many-instance-attributes
if target is None:
raise errors.CertStorageError("could not find cert file")
with open(target) as f:
return crypto_util.get_sans_from_cert(f.read())
return crypto_util.get_names_from_cert(f.read())
def autodeployment_is_enabled(self):
"""Is automatic deployment enabled for this cert?