pub struct Certificate {Show 16 fields
pub uuid: Uuid,
pub zone_id: Option<Uuid>,
pub is_default: bool,
pub source: String,
pub names: Vec<String>,
pub subject: String,
pub issuer: String,
pub serial: String,
pub fingerprint_sha256: String,
pub valid_from: i64,
pub valid_to: i64,
pub expired: bool,
pub key_type: String,
pub chain_length: u32,
pub created_at: i64,
pub updated_at: i64,
}Expand description
A TLS certificate Relay serves for the names in it, picked by SNI (exact name, then a one-label wildcard). Core never returns the private key; the details are read from the stored chain.
Fields§
§uuid: UuidCertificate id; stays the same across renewals.
zone_id: Option<Uuid>The zone it belongs to. None for a platform certificate (Admin only).
is_default: boolPlatform default for names no other certificate covers. Only platform certificates can be the default.
source: StringManual or Acme (kept as a string for forward compatibility); see
CertificateSource and Certificate::source_kind.
names: Vec<String>SAN DNS names, lowercase; wildcards as *.example.com.
subject: StringSubject of the leaf certificate.
issuer: StringIssuer of the leaf certificate.
serial: StringSerial number of the leaf certificate.
fingerprint_sha256: StringSHA-256 fingerprint of the leaf certificate.
valid_from: i64Unix seconds.
valid_to: i64Unix seconds.
expired: boolWhether valid_to has passed (at the time Core answered).
key_type: StringKey algorithm and size, e.g. EC P-256, RSA 2048, Ed25519.
chain_length: u32Number of certificates in the chain (leaf + intermediates).
created_at: i64Unix seconds.
updated_at: i64Unix seconds.
Implementations§
Source§impl Certificate
impl Certificate
Sourcepub fn source_kind(&self) -> Option<CertificateSource>
pub fn source_kind(&self) -> Option<CertificateSource>
source in its typed form, if this SDK version knows it.
Trait Implementations§
Source§impl Clone for Certificate
impl Clone for Certificate
Source§fn clone(&self) -> Certificate
fn clone(&self) -> Certificate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more