fix SSL verify callback for certificate chains
ignoring parts of the chain means saying they are verified, because the verify callback results are chained together starting with the highest depth.
This commit is contained in:
parent
d14036e5e3
commit
d23ff9baf8
@ -700,7 +700,7 @@ sub proxy_request {
|
||||
verify_cb => sub {
|
||||
my (undef, undef, undef, $depth, undef, undef, $cert) = @_;
|
||||
# we don't care about intermediate or root certificates
|
||||
return 0 if $depth != 0;
|
||||
return 1 if $depth != 0;
|
||||
# check server certificate against cache of pinned FPs
|
||||
return check_cert_fingerprint($cert);
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user