aboutsummaryrefslogtreecommitdiff
path: root/src/x509/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/x509/mod.rs')
-rw-r--r--src/x509/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/x509/mod.rs b/src/x509/mod.rs
index 88b81d7e..e3ececcc 100644
--- a/src/x509/mod.rs
+++ b/src/x509/mod.rs
@@ -272,6 +272,8 @@ impl X509Generator {
/// Generates a private key and a signed certificate and returns them
pub fn generate<'a>(&self) -> Result<(X509<'a>, PKey), SslError> {
+ ffi::init();
+
let mut p_key = PKey::new();
p_key.gen(self.bits);