Struct openssl::x509::X509ReqBuilder [−][src]
pub struct X509ReqBuilder(_);
Expand description
A builder used to construct an X509Req
.
Implementations
Returns a builder for a certificate request.
This corresponds to X509_REQ_new
.
Set the numerical value of the version field.
This corresponds to X509_REQ_set_version
.
Set the issuer name.
This corresponds to X509_REQ_set_subject_name
.
pub fn set_pubkey<T>(&mut self, key: &PKeyRef<T>) -> Result<(), ErrorStack> where
T: HasPublic,
pub fn set_pubkey<T>(&mut self, key: &PKeyRef<T>) -> Result<(), ErrorStack> where
T: HasPublic,
Set the public key.
This corresponds to X509_REQ_set_pubkey
.
Return an X509v3Context
. This context object can be used to construct
certain X509
extensions.
pub fn add_extensions(
&mut self,
extensions: &StackRef<X509Extension>
) -> Result<(), ErrorStack>
pub fn add_extensions(
&mut self,
extensions: &StackRef<X509Extension>
) -> Result<(), ErrorStack>
Permits any number of extension fields to be added to the certificate.
pub fn sign<T>(
&mut self,
key: &PKeyRef<T>,
hash: MessageDigest
) -> Result<(), ErrorStack> where
T: HasPrivate,
pub fn sign<T>(
&mut self,
key: &PKeyRef<T>,
hash: MessageDigest
) -> Result<(), ErrorStack> where
T: HasPrivate,
Sign the request using a private key.
This corresponds to X509_REQ_sign
.