ssllabs.chain

class ssllabs.chain.Chain(data)[source]

Bases: ssllabs.object.Object

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

certs

a list of ssllabs.chaincert.ChainCert objects, representing the chain certificates in the order in which they were retrieved from the server

issues

list of chain issues as an Issues object

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

Bases: object

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

addedexternal

if we added external certificates

couldnotvalidate

the certificates form a chain (if we added external certificates, :meth`addedexternal` will be set), but we could not validate it. If the leaf was trusted, that means that we built a different chain we trusted.

incompletechain

incomplete chain (set only when we were able to build a chain by adding missing intermediate certificates from external sources)

selfsignedroot

contains a self-signed root certificate (not set for self-signed leafs)

unrelated

chain contains unrelated or duplicate certificates (i.e., certificates that are not part of the same chain)

wrongorder

the certificates form a chain (trusted or not), but the order is incorrect