Revision 26308930
Added by Marcos M about 1 year ago
src/etc/inc/openvpn.tls-verify.php | ||
---|---|---|
77 | 77 |
if (($ovpns['vpnid'] == $current_vpnid['1']) && ($ovpns['ocspcheck'] == 'yes')) { |
78 | 78 |
$capath = "/var/etc/openvpn/server{$ovpns['vpnid']}/ca/"; |
79 | 79 |
$ca = lookup_ca($ovpns['caref']); |
80 |
$ca = $ca['item']; |
|
80 | 81 |
$cert_contents = base64_decode($ca['crt']); |
81 | 82 |
$cert_details = openssl_x509_parse($cert_contents); |
82 | 83 |
$issuer = $capath . $cert_details['hash'] . ".0"; |
Also available in: Unified diff
Use config accessors in certificate functions