diff --git a/src/etc/inc/certs.inc b/src/etc/inc/certs.inc index 869f341af..23f2889f3 100644 --- a/src/etc/inc/certs.inc +++ b/src/etc/inc/certs.inc @@ -195,25 +195,6 @@ function cert_get_subject($str_crt, $decode = true) return certs_build_name($components); } -function cert_get_subject_array($crt) -{ - $str_crt = base64_decode($crt); - $inf_crt = openssl_x509_parse($str_crt); - $components = $inf_crt['subject']; - - if (!is_array($components)) { - return; - } - - $subject_array = array(); - - foreach ($components as $a => $v) { - $subject_array[] = array('a' => $a, 'v' => $v); - } - - return $subject_array; -} - function cert_get_issuer($str_crt, $decode = true) { if ($decode) {