pub struct Issued {
pub principal_id: String,
pub common_name: String,
pub cert_pem: String,
pub cert_der: Vec<u8>,
pub fingerprint: Fingerprint,
pub key_pem: Option<String>,
}Expand description
A certificate this server issued.
Fields§
§principal_id: StringThe principal it was issued for. Equal to Issued::common_name by
construction — the certificate-identity plan takes the identity from the CN.
common_name: StringThe subject common name that was actually written into the certificate.
cert_pem: StringThe certificate, PEM-armoured.
cert_der: Vec<u8>Its DER, which is what crate::AuthTable::register_certificate takes.
fingerprint: FingerprintIts fingerprint.
key_pem: Option<String>The private key, and only for --server-generated-key.
None on the CSR path, and that None is the security property: on that
path the key never existed here, so there is nothing to hand back, log,
or leak. See Pki::issue_with_server_key for what taking Some costs.
Trait Implementations§
impl Eq for Issued
impl StructuralPartialEq for Issued
Auto Trait Implementations§
impl Freeze for Issued
impl RefUnwindSafe for Issued
impl Send for Issued
impl Sync for Issued
impl Unpin for Issued
impl UnsafeUnpin for Issued
impl UnwindSafe for Issued
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.