curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Test server SSL handshake using libcurl

From: Henrik Holst via curl-library <curl-library_at_lists.haxx.se>
Date: Fri, 6 Oct 2023 20:37:55 +0200

if you get 404 then the handshake did work, the 404 is from the http layer
and not TLS so if you get that then TLS works (do curl -v just to be sure)

/HH

Den fre 6 okt. 2023 kl 20:29 skrev Taw via curl-library <
curl-library_at_lists.haxx.se>:

> Hi, I am trying to use libcurl to test a handshake with an internal
> server. Unfortunately GET/HEAD methods do no work, I get 404 error from the
> server.
> Practically I would like the cURL equivalent of this command: "openssl
> s_client -connect <url>:<port> -cert=<cert path>"
> I can use OpenSSL lib to do it, but cURL is more elegant and OpenSSL is
> not that friendly.
> Thank you
> --
> Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
> Etiquette: https://curl.se/mail/etiquette.html
>


-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2023-10-06