Revision 2f7c76cf
Added by Doktor Notor over 8 years ago
src/etc/inc/certs.inc | ||
---|---|---|
570 | 570 |
$crt_details = openssl_x509_parse($str_crt); |
571 | 571 |
$purpose = array(); |
572 | 572 |
$purpose['ca'] = (stristr($crt_details['extensions']['basicConstraints'], 'CA:TRUE') === false) ? 'No': 'Yes'; |
573 |
$purpose['server'] = (strpos($crt_details['extensions']['nsCertType'], 'Server') !== FALSE) ? 'Yes': 'No'; |
|
573 |
$purpose['server'] = (strpos($crt_details['extensions']['nsCertType'], 'SSL Server') !== FALSE) ? 'Yes': 'No';
|
|
574 | 574 |
return $purpose; |
575 | 575 |
} |
576 | 576 |
|
Also available in: Unified diff
Put original match back
Did not mean to remove SSL substring from the check...