system: remove unused cert_get_subject_array()

This commit is contained in:
Franco Fichtner 2025-04-24 08:58:13 +02:00
parent 51dcbcc39e
commit 54629f459d

View File

@ -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) {