diff options
author | PiBa-NL <pba_2k3@yahoo.com> | 2017-02-25 17:38:23 +0100 |
---|---|---|
committer | PiBa-NL <pba_2k3@yahoo.com> | 2017-02-25 17:38:23 +0100 |
commit | 7fd7fbcff3304285f4407bec2ae62bab7195bcc4 (patch) | |
tree | 1ca9e49d065edfd92aef3fca2ca5450897779c9e /src/etc | |
parent | 69860ee4f5ff9f1e5b87bc6fdcb6dfea66062726 (diff) | |
download | pfsense-7fd7fbcff3304285f4407bec2ae62bab7195bcc4.zip pfsense-7fd7fbcff3304285f4407bec2ae62bab7195bcc4.tar.gz |
certificatemanager, link certificate to the proper CA after completing the CSR request
Diffstat (limited to 'src/etc')
-rw-r--r-- | src/etc/inc/certs.inc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/etc/inc/certs.inc b/src/etc/inc/certs.inc index 248019e..4da7543 100644 --- a/src/etc/inc/certs.inc +++ b/src/etc/inc/certs.inc @@ -427,11 +427,9 @@ function csr_generate(& $cert, $keylen, $dn, $digest_alg = "sha256") { } function csr_complete(& $cert, $str_crt) { - - // return our request information - $cert['crt'] = base64_encode($str_crt); + $str_key = base64_decode($cert['prv']); + cert_import($cert, $str_crt, $str_key); unset($cert['csr']); - return true; } |