pub struct CertificateRequest { /* private fields */ }Expand description
A freshly generated RSA key pair and the CSR that asks Apple to certify it.
Keep these two together. The CSR is worthless without the key, the certificate Apple returns is worthless without the key, and the key is unrecoverable if dropped.
Implementations§
Source§impl CertificateRequest
impl CertificateRequest
Sourcepub fn csr_pem(&self) -> &str
pub fn csr_pem(&self) -> &str
The CSR to send Apple, as PEM text including the
-----BEGIN CERTIFICATE REQUEST----- armour.
Sourcepub fn private_key_pem(&self) -> &Zeroizing<String>
pub fn private_key_pem(&self) -> &Zeroizing<String>
The private key, PKCS#8 PEM. This is the secret: write it somewhere encrypted, and never log it, print it to stdout, or return it from an API a language model can read.
Trait Implementations§
Source§impl Debug for CertificateRequest
Deliberately opaque: printing a key pair, even by accident through a
derived Debug on some struct three layers up, is how private keys end
up in CI logs.
impl Debug for CertificateRequest
Deliberately opaque: printing a key pair, even by accident through a
derived Debug on some struct three layers up, is how private keys end
up in CI logs.
Auto Trait Implementations§
impl Freeze for CertificateRequest
impl RefUnwindSafe for CertificateRequest
impl Send for CertificateRequest
impl Sync for CertificateRequest
impl Unpin for CertificateRequest
impl UnsafeUnpin for CertificateRequest
impl UnwindSafe for CertificateRequest
Blanket Implementations§
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