From ae4dbded80a9eb7b6df103b152b74986d1cb69e2 Mon Sep 17 00:00:00 2001 From: Ermal Date: Mon, 15 Mar 2010 18:46:39 +0000 Subject: Ticket #161. Fix creation of certificates and the webgui one. This was a problem on php API docs. --- etc/inc/certs.inc | 4 ++-- 1 file 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", -- cgit v1.1