added CSR, Owner, Cert type and extended key usage from Entrust
This commit is contained in:
parent
6585bcaa55
commit
c635e0f76e
|
@ -20,6 +20,7 @@ def log_status_code(r, *args, **kwargs):
|
||||||
:param kwargs:
|
:param kwargs:
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
|
if r.status_code != 200:
|
||||||
log_data = {
|
log_data = {
|
||||||
"reason": (r.reason if r.reason else ""),
|
"reason": (r.reason if r.reason else ""),
|
||||||
"status_code": r.status_code,
|
"status_code": r.status_code,
|
||||||
|
@ -386,6 +387,9 @@ class EntrustSourcePlugin(SourcePlugin):
|
||||||
"body": certificate["endEntityCert"],
|
"body": certificate["endEntityCert"],
|
||||||
"serial": serial,
|
"serial": serial,
|
||||||
"external_id": str(certificate["trackingId"]),
|
"external_id": str(certificate["trackingId"]),
|
||||||
|
"csr": certificate["csr"],
|
||||||
|
"owner": certificate["tracking"]["requesterEmail"],
|
||||||
|
"description": f"Type: Entrust {certificate['certType']}\nExtended Key Usage: {certificate['eku']}"
|
||||||
}
|
}
|
||||||
certs.append(cert)
|
certs.append(cert)
|
||||||
processed_certs += 1
|
processed_certs += 1
|
||||||
|
|
Loading…
Reference in New Issue