Expand warning for missing ASN1 parser to include pyasn1_modules
This commit is contained in:
parent
ee9c4abd08
commit
94488fa2ea
@ -94,7 +94,7 @@ def extract_names(raw_cert):
|
|||||||
|
|
||||||
def extract_dates(raw_cert):
|
def extract_dates(raw_cert):
|
||||||
if not HAVE_PYASN1:
|
if not HAVE_PYASN1:
|
||||||
log.warning("Could not find pyasn1 module. " + \
|
log.warning("Could not find pyasn1 and pyasn1_modules. " + \
|
||||||
"SSL certificate expiration COULD NOT BE VERIFIED.")
|
"SSL certificate expiration COULD NOT BE VERIFIED.")
|
||||||
return None, None
|
return None, None
|
||||||
|
|
||||||
@ -130,7 +130,7 @@ def get_ttl(raw_cert):
|
|||||||
|
|
||||||
def verify(expected, raw_cert):
|
def verify(expected, raw_cert):
|
||||||
if not HAVE_PYASN1:
|
if not HAVE_PYASN1:
|
||||||
log.warning("Could not find pyasn1 module. " + \
|
log.warning("Could not find pyasn1 and pyasn1_modules. " + \
|
||||||
"SSL certificate COULD NOT BE VERIFIED.")
|
"SSL certificate COULD NOT BE VERIFIED.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user