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: SSL connect error

From: Cristian Rodríguez via curl-library <curl-library_at_lists.haxx.se>
Date: Thu, 9 Dec 2021 09:53:31 -0300

On Wed, Dec 8, 2021 at 10:54 AM Thierry Huchard via curl-library
<curl-library_at_lists.haxx.se> wrote:
>
> Hello to all !
> I am the maintainer of the sane-escl backend, I have an error on an
> https access on a canon XK90 scanner.
> If you have an idea of why and how to bypass it, I'm interested!
>
> curl_handle = curl_easy_init();
> curl_easy_setopt(curl_handle, CURLOPT_URL,
> "https://192.168.yyy.xxx:443/eSCL/ScannerCapabilities");
> curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYPEER, 0L);
> curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYHOST, 0L);
> curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION,
> memory_callback_c);
> curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *)var);
> curl_easy_setopt(curl_handle, CURLOPT_HEADERFUNCTION,
> header_callback);
> curl_easy_setopt(curl_handle, CURLOPT_HEADERDATA, (void *)header);
> curl_easy_setopt(curl_handle, CURLOPT_FOLLOWLOCATION, 1L);
> curl_easy_setopt(curl_handle, CURLOPT_MAXREDIRS, 3L);
> CURLcode res = curl_easy_perform(curl_handle);
> if (res != CURLE_OK) {
> printf("respond: %s\n", curl_easy_strerror(res)); // respond:
> SSL connect error
> exit--1);
> }
>
> I don't have access to the device!


Well.. This almost always happen when openssl refuses to talk to the
target system because it uses unacceptable ancient ciphersuites or
TLS versions. You need a new scanner. :-(
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2021-12-09