ssllabs.hpkppolicy

class ssllabs.hpkppolicy.HpkpPolicy(data)[source]

Bases: ssllabs.object.Object

The HPKP Policy, accessed from ssllabs.endpointdetails.EndpointDetails.hpkpPolicy() and ssllabs.endpointdetails.EndpointDetails.hpkpRoPolicy()

directives

list of raw policy directives (name-value pairs)

error

error message when error is encountered, null otherwise

header

the contents of the HSTS response header, if present

includeSubDomains

true if the includeSubDomains directive is set; null otherwise

matchedPins

list of pins that match the current configuration; each list entry contains a dict with two fields, hashFunction and value (hex-encoded)

maxAge

the max-age value specified in the policy; null if policy is missing or invalid or on parsing error; the maximum value currently supported is 9223372036854775807

pins

list of all pins used by the policy

reportUri

the report-uri value from the policy

status

HSTS status:

unknown
either before the server is checked or when its HTTP response headers are not available
absent
header not present
present
header present and syntatically correct
invalid
header present, but couldn’t be parsed
disabled
header present and syntatically correct, but HSTS is disabled