From 311f93cd141d69536eb4fafa4e0068f6343252e3 Mon Sep 17 00:00:00 2001 From: Ermal Date: Wed, 12 Jan 2011 19:19:35 +0000 Subject: Ticket #621. Sort even csr subject to have the matching go ok during import of externally signed cers. --- etc/inc/certs.inc | 1 + 1 file changed, 1 insertion(+) 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}"; -- cgit v1.1