diff options
author | jim-p <jimp@pfsense.org> | 2010-09-23 11:49:58 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-09-23 11:49:58 -0400 |
commit | 838e27bf24f54735795387800ce2d43662f3cc81 (patch) | |
tree | 3b10afed8ac6f32057cc218fbf98aff81dd69965 /etc | |
parent | b256213d4c739e4a116f31a3dc35fb4407988f44 (diff) | |
download | pfsense-838e27bf24f54735795387800ce2d43662f3cc81.zip pfsense-838e27bf24f54735795387800ce2d43662f3cc81.tar.gz |
Pass args to openssl_pkey_new() so it gets the key length too. Fixes #905
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/certs.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/certs.inc b/etc/inc/certs.inc index 15a21b8..0a9e342 100644 --- a/etc/inc/certs.inc +++ b/etc/inc/certs.inc @@ -165,7 +165,7 @@ function ca_create(& $ca, $keylen, $lifetime, $dn) { "encrypt_key" => false); // generate a new key pair - $res_key = openssl_pkey_new(); + $res_key = openssl_pkey_new($args); // generate a certificate signing request $res_csr = openssl_csr_new($dn, $res_key, $args); @@ -221,7 +221,7 @@ function cert_create(& $cert, $caref, $keylen, $lifetime, $dn) { "encrypt_key" => false); // generate a new key pair - $res_key = openssl_pkey_new(); + $res_key = openssl_pkey_new($args); // generate a certificate signing request $res_csr = openssl_csr_new($dn, $res_key, $args); @@ -251,7 +251,7 @@ function csr_generate(& $cert, $keylen, $dn) { "encrypt_key" => false); // generate a new key pair - $res_key = openssl_pkey_new(); + $res_key = openssl_pkey_new($args); // generate a certificate signing request $res_csr = openssl_csr_new($dn, $res_key, $args); |