summaryrefslogtreecommitdiffstats
path: root/etc/inc/certs.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/certs.inc')
-rw-r--r--etc/inc/certs.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/inc/certs.inc b/etc/inc/certs.inc
index b9c3383..88fb2b9 100644
--- a/etc/inc/certs.inc
+++ b/etc/inc/certs.inc
@@ -307,6 +307,12 @@ function cert_get_subject_array($crt) {
return $subject_array;
}
+function cert_get_subject_hash($crt) {
+ $str_crt = base64_decode($crt);
+ $inf_crt = openssl_x509_parse($str_crt);
+ return $inf_crt['subject'];
+}
+
function cert_get_issuer($str_crt, $decode = true) {
if ($decode)
OpenPOWER on IntegriCloud