I did this
build curl with ngtcp2 + nghttp3 + wolfSSL
Issue a request that should fail the certificate check, like this:
curl --http3 --resolve example:443:151.101.129.91 https://example
The problem is likely here:
|
(void)data; |
|
if(conn_config->verifyhost) { |
|
if(!peer->sni || |
|
wolfSSL_check_domain_name(ctx->ssl, peer->sni) == SSL_FAILURE) |
|
return CURLE_PEER_FAILED_VERIFICATION; |
|
} |
This does not really verify the peer certificate. For TCP connections this works as it is wired into the wolfSSL connect() implementation and gives a special return code on such a fail.
I expected the following
A request to a server that fails the check should error out.
curl/libcurl version
git master
operating system
independent
I did this
build curl with ngtcp2 + nghttp3 + wolfSSL
Issue a request that should fail the certificate check, like this:
The problem is likely here:
curl/lib/vquic/vquic-tls.c
Lines 325 to 330 in c8e0cd1
This does not really verify the peer certificate. For TCP connections this works as it is wired into the wolfSSL connect() implementation and gives a special return code on such a fail.
I expected the following
A request to a server that fails the check should error out.
curl/libcurl version
git master
operating system
independent