reviewboard.scmtools.certs¶
-
class
Certificate
(pem_data=u'', valid_from=u'', valid_until=u'', hostname=u'', realm=u'', fingerprint=u'', issuer=u'', failures=[])[source]¶ Bases:
object
A representation of an HTTPS certificate.
-
__init__
(pem_data=u'', valid_from=u'', valid_until=u'', hostname=u'', realm=u'', fingerprint=u'', issuer=u'', failures=[])[source]¶ Initialize the certificate.
Parameters: - pem_data (unicode) – The PEM-encoded certificate, if available.
- valid_from (unicode) – A user-readable representation of the initiation date of the certificate.
- valid_until (unicode) – A user-readable representation of the expiration date of the certificate.
- hostname (unicode) – The hostname that this certificate is tied to.
- realm (unicode) – An authentication realm (used with SVN).
- fingerprint (unicode) – The fingerprint of the certificate. This can be in various formats depending on the backend which is dealing with the certificate, but ideally should be a SHA256-sum of the DER-encoded certificate.
- issuer (unicode) – The common name of the issuer of the certificate.
- failures (list of unicode) – A list of the verification failures, if available.
-