diff options
author | Ermal <eri@pfsense.org> | 2010-03-15 18:46:39 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-03-15 18:46:39 +0000 |
commit | ae4dbded80a9eb7b6df103b152b74986d1cb69e2 (patch) | |
tree | d9479330d8e10060929172a1217d9083880ae569 | |
parent | e7ee3bfe0b958825de89d14322a8a2fb86e88ec3 (diff) | |
download | pfsense-ae4dbded80a9eb7b6df103b152b74986d1cb69e2.zip pfsense-ae4dbded80a9eb7b6df103b152b74986d1cb69e2.tar.gz |
Ticket #161. Fix creation of certificates and the webgui one. This was a problem on php API docs.
-rw-r--r-- | etc/inc/certs.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/certs.inc b/etc/inc/certs.inc index e56b5fb..9b5daa4 100644 --- a/etc/inc/certs.inc +++ b/etc/inc/certs.inc @@ -191,8 +191,8 @@ function cert_create(& $cert, $caref, $keylen, $lifetime, $dn) { $ca_str_crt = base64_decode($ca['crt']); $ca_str_key = base64_decode($ca['prv']); $ca_res_crt = openssl_x509_read($ca_str_crt); - $ca_res_key = openssl_pkey_get_private($ca_str_key); - $ca_serial = $ca['serial']++; + $ca_res_key = openssl_pkey_get_private(array(0 => $ca_str_key, 1 => "")); + $ca_serial = ++$ca['serial']; $args = array( "digest_alg" => "sha1", |