Clarify which keys are used where
This commit is contained in:
parent
4a818e5394
commit
a0cbcf56cf
|
|
@ -332,7 +332,7 @@ impl X509Generator {
|
||||||
((res as c_ulong) >> 1) as c_long
|
((res as c_ulong) >> 1) as c_long
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Generates a private key and a signed certificate and returns them
|
/// Generates a private key and a self-signed certificate and returns them
|
||||||
pub fn generate<'a>(&self) -> Result<(X509<'a>, PKey), SslError> {
|
pub fn generate<'a>(&self) -> Result<(X509<'a>, PKey), SslError> {
|
||||||
ffi::init();
|
ffi::init();
|
||||||
|
|
||||||
|
|
@ -343,7 +343,7 @@ impl X509Generator {
|
||||||
Ok((x509, p_key))
|
Ok((x509, p_key))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Signs certificate with a private key and returns it
|
/// Sets the certificate public-key, then self-sign and return it
|
||||||
/// Note: That the bit-length of the private key is used (set_bitlength is ignored)
|
/// Note: That the bit-length of the private key is used (set_bitlength is ignored)
|
||||||
pub fn sign<'a>(&self, p_key: &PKey) -> Result<X509<'a>, SslError> {
|
pub fn sign<'a>(&self, p_key: &PKey) -> Result<X509<'a>, SslError> {
|
||||||
ffi::init();
|
ffi::init();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue