SslCertificate QML Type

X.509 certificate More...

Import Statement: import com.canonical.Oxide 1.15
Since: OxideQt 1.2
Instantiates: OxideQSslCertificate

Properties

Methods

Detailed Description

SslCertificate represents a X.509 certificate provided by a remote server.

Information about the subject of the certificate can be discovered by calling getSubjectInfo. Information about the issuer of the certificate (the entity that signed it) can be discovered by calling getIssuerInfo. For self-signed certificates, this will return the same as getSubjectInfo.

For certificates that aren't self-signed, the issuer's certificate can be accessed via issuer.

Property Documentation

effectiveDate : Date

The start date for this certificate.


expiryDate : Date

The expiry date for this certificate.


fingerprintSHA1 : string

The SHA1 fingerprint of this certificate as a hex encoded string.


isExpired : bool

Whether this certificate has expired.


The issuer of this certificate, or null if the certificate is self-signed.


issuerDisplayName : string

The display name of the issuer of this certificate.


serialNumber : string

The serial number of this certificate as a hex encoded string.


subjectDisplayName : string

The display name of the subject of this certificate.


Method Documentation

string getIssuerInfo(enumeration attr)

Returns the value of the field specified by attr for this certificate's issuer.

Possible values for attr are:

ConstantDescription
SslCertificate.PrincipalAttrOrganizationName'O' - The name of the organization.
SslCertificate.PrincipalAttrCommonName'CN' - The Common Name. Generally used to store the host name.
SslCertificate.PrincipalAttrLocalityName'L' - The locality.
SslCertificate.PrincipalAttrOrganizationUnitName'OU' - The organizational unit name.
SslCertificate.PrincipalAttrCountryName'C' - The country name.
SslCertificate.PrincipalAttrStateOrProvinceName'ST' - The state or province name.

string getSubjectInfo(enumeration attr)

Returns the value of the field specified by attr for this certificate's subject.

Possible values for attr are:

ConstantDescription
SslCertificate.PrincipalAttrOrganizationName'O' - The name of the organization.
SslCertificate.PrincipalAttrCommonName'CN' - The Common Name. Generally used to store the host name.
SslCertificate.PrincipalAttrLocalityName'L' - The locality.
SslCertificate.PrincipalAttrOrganizationUnitName'OU' - The organizational unit name.
SslCertificate.PrincipalAttrCountryName'C' - The country name.
SslCertificate.PrincipalAttrStateOrProvinceName'ST' - The state or province name.

string toPem()

Returns a PEM encoded version of this certificate.