pub struct CertificateSigningRequestParams {
pub params: CertificateParams,
pub public_key: PublicKey,
}Expand description
Parameters for a certificate signing request
Fields§
§params: CertificateParamsParameters for the certificate to be signed.
public_key: PublicKeyPublic key to include in the certificate signing request.
Implementations§
Source§impl CertificateSigningRequestParams
impl CertificateSigningRequestParams
Sourcepub fn signed_by(
&self,
issuer: &Issuer<'_, impl SigningKey>,
) -> Result<Certificate, Error>
pub fn signed_by( &self, issuer: &Issuer<'_, impl SigningKey>, ) -> Result<Certificate, Error>
Generate a new certificate based on the requested parameters, signed by the provided issuer.
The returned certificate will have its issuer field set to the subject of the provided
issuer, and the authority key identifier extension will be populated using the subject
public key of issuer. It will be signed by issuer_key.
Note that no validation of the issuer certificate is performed. Rcgen will not require
the certificate to be a CA certificate, or have key usage extensions that allow signing.
The returned Certificate may be serialized using Certificate::der and
Certificate::pem.
Trait Implementations§
Source§impl Clone for CertificateSigningRequestParams
impl Clone for CertificateSigningRequestParams
Source§fn clone(&self) -> CertificateSigningRequestParams
fn clone(&self) -> CertificateSigningRequestParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl PartialEq for CertificateSigningRequestParams
impl PartialEq for CertificateSigningRequestParams
Source§fn eq(&self, other: &CertificateSigningRequestParams) -> bool
fn eq(&self, other: &CertificateSigningRequestParams) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CertificateSigningRequestParams
impl StructuralPartialEq for CertificateSigningRequestParams
Auto Trait Implementations§
impl Freeze for CertificateSigningRequestParams
impl !RefUnwindSafe for CertificateSigningRequestParams
impl Send for CertificateSigningRequestParams
impl Sync for CertificateSigningRequestParams
impl Unpin for CertificateSigningRequestParams
impl !UnwindSafe for CertificateSigningRequestParams
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