summaryrefslogtreecommitdiffstats
path: root/etc/inc/certs.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-01-12 19:19:35 +0000
committerErmal <eri@pfsense.org>2011-01-12 19:19:35 +0000
commit311f93cd141d69536eb4fafa4e0068f6343252e3 (patch)
tree178d065752dc613e11365ac993a20f2b260826a2 /etc/inc/certs.inc
parent3b83b51ad2dd7d1ed3ecb0faab251813b3678a8e (diff)
downloadpfsense-311f93cd141d69536eb4fafa4e0068f6343252e3.zip
pfsense-311f93cd141d69536eb4fafa4e0068f6343252e3.tar.gz
Ticket #621. Sort even csr subject to have the matching go ok during import of externally signed cers.
Diffstat (limited to 'etc/inc/certs.inc')
-rw-r--r--etc/inc/certs.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/inc/certs.inc b/etc/inc/certs.inc
index 03371fd..7d19045 100644
--- a/etc/inc/certs.inc
+++ b/etc/inc/certs.inc
@@ -286,6 +286,7 @@ function csr_get_subject($str_crt, $decode = true) {
if (!is_array($components))
return "unknown";
+ ksort($components);
foreach ($components as $a => $v) {
if (!strlen($subject))
$subject = "{$a}={$v}";
OpenPOWER on IntegriCloud