mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Correct OSCP Must-Staple cert check for OpenSSL 1.1.1. Fixes #9408
This commit is contained in:
parent
b39d615394
commit
0d82f93b68
@ -667,7 +667,8 @@ function cert_get_ocspstaple($str_crt, $decode = true) {
|
||||
$str_crt = base64_decode($str_crt);
|
||||
}
|
||||
$crt_details = openssl_x509_parse($str_crt);
|
||||
if (!empty($crt_details['extensions']['1.3.6.1.5.5.7.1.24'])) {
|
||||
if (($crt_details['extensions']['tlsfeature'] == "status_request") ||
|
||||
!empty($crt_details['extensions']['1.3.6.1.5.5.7.1.24'])) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user