summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Smith <mgsmith@netgate.com>2015-10-16 09:05:45 -0500
committerMatt Smith <mgsmith@netgate.com>2015-10-16 09:05:45 -0500
commitdd76084d44b8bc936ff731350afff2d313a627f5 (patch)
treeb94848fba0f6e400c918d02643de7c5075499c96
parentd7af098fb250bfa7b200c1d2dae893caaa653d45 (diff)
downloadpfsense-dd76084d44b8bc936ff731350afff2d313a627f5.zip
pfsense-dd76084d44b8bc936ff731350afff2d313a627f5.tar.gz
Add 'caref' attribute to the ca object passed into ca_inter_create so a
relationship to the signing CA can be maintained. Fixes #5313.
-rw-r--r--src/etc/inc/certs.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/etc/inc/certs.inc b/src/etc/inc/certs.inc
index 9c99952..2919cb8 100644
--- a/src/etc/inc/certs.inc
+++ b/src/etc/inc/certs.inc
@@ -284,6 +284,7 @@ function ca_inter_create(& $ca, $keylen, $lifetime, $dn, $caref, $digest_alg = "
$ca['crt'] = base64_encode($str_crt);
$ca['prv'] = base64_encode($str_key);
$ca['serial'] = 0;
+ $ca['caref'] = $caref;
return true;
}
OpenPOWER on IntegriCloud