ssllabs.cert

class ssllabs.cert.Cert(data)[source]

Bases: ssllabs.object.Object

Cert object that can be used to access the certificate of an endpoint, accessed from ssllabs.endpointdetails.EndpointDetails.cert()

altNames

alternative names

commonNames

common names extracted from the subject

crlRevocationStatus

same as revocationStatus, but only for the CRL information (if any).

crlURIs

CRL URIs extracted from the certificate

issuerLabel

issuer name

issuerSubject

issuer subject

issues

list of certificate issues as an Issues object

mustStaple

a number that describes the must staple feature extension status: 0 - not supported 1 - Supported, but OCSP response is not stapled 2 - Supported, OCSP response is stapled

notAfter

timestamp after which the certificate is not valid

notBefore

timestamp before which the certificate is not valid

ocspRevocationStatus

same as revocationStatus, but only for the OCSP information (if any).

ocspURIs

OCSP URIs extracted from the certificate

revocationInfo

RevocationInfo object representing revocation information present in the certificate

revocationStatus

a number that describes the revocation status of the certificate: 0 - not checked 1 - certificate revoked 2 - certificate not revoked 3 - revocation check error 4 - no revocation information 5 - internal error

sct

true if the certificate contains an embedded SCT; false otherwise.

sgc

Server Gated Cryptography support as an SGC object

sigAlg

certificate signature algorithm

subject

certificate subject

validationType

E for Extended Validation certificates; may be null if unable to determine

class ssllabs.cert.Issues(data)[source]

Bases: object

Issues that may be present, from Cert.issues()

badcommonname

Bad Common Name

blacklisted

Certificate blacklisted

hostnamemismatch

Hostnames mismatched

insecuresignature

Insecure Signature

nochainoftrust

No Chain of Trust

notafter

Violates Not After constraint

notbefore

Violates Not Before constraint

revoked

Certificate revoked

selfsigned

Self-signed certificate

class ssllabs.cert.RevocationInfo(data)[source]

Bases: object

revocation information present in the certificate, from Cert.revocationInfo()

crl

CRL information available

ocsp

OCSP information available

class ssllabs.cert.SGC(data)[source]

Bases: object

Server Gated Cryptography support, from Cert.sgc()

microsoft

Microsoft SGC

netscape

Netscape SGC