View Source Orbit.ClientCertificate (Orbit v0.2.2)
Commonly-used fields from the TLS client certificate.
The original :OTPCertificate
record is available in the otp_certificate
field. The X509
library is included and can be used to extract additional values from the otp_certificate
.
fields
Fields
common_name
- the common name (CN) stringfingerprints
- a map of base-16 fingerprints for various hashes:sha
for SHA-1:sha256
for SHA-256
not_valid_after
- the UTCDateTime
at the end of validitynot_valid_before
- the UTCDateTime
at the beginning of validityotp_certificate
- the underlying:OTPCertificate
recordself_signed?
- if the certificate has been self-signed (issuer is the same as the subject)serial_number
- the serial number integer
Link to this section Summary
Functions
Returns a new %ClientCertificate{}
from a DER-encoded binary.
Link to this section Types
@type t() :: %Orbit.ClientCertificate{ common_name: String.t(), fingerprints: %{sha: String.t(), sha256: String.t()}, not_valid_after: DateTime.t(), not_valid_before: DateTime.t(), otp_certificate: X509.Certificate.t(), self_signed?: boolean(), serial_number: non_neg_integer() }
Link to this section Functions
Returns a new %ClientCertificate{}
from a DER-encoded binary.