Discussion:
WIN - Command Prompt - Curl: (77) error setting certificate verify locations
Arantxa Esparza via curl-library
2021-05-27 10:47:35 UTC
Permalink
Hi,



I want to make a POST request. I need a PEM certification which I already
have.



I want to make a request to an AXIS camera. I need a SSL certificate and I
already have it on my computer.







I'm getting this error once and again and I don't know how to deal with it.



Curl: (77) error setting certificate verify locations: ..



Thanks in advance!



Arantxa.
Daniel Stenberg via curl-library
2021-05-27 13:09:53 UTC
Permalink
On Thu, 27 May 2021, Arantxa Esparza via curl-library wrote:

Please show error messages as text, not as images. Some of us still read
emails using text only.
Post by Arantxa Esparza via curl-library
I'm getting this error once and again and I don't know how to deal with it.
Curl: (77) error setting certificate verify locations: ..
Your curl image was built or is instructed to read a ca-cert file that causes
OpenSSL to return error. Does it really exist and is readable there?
--
/ daniel.haxx.se
| Commercial curl support up to 24x7 is available!
| Private help, bug fixes, support, ports, new features
| https://www.wolfssl.com/contact/
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.ht
Arantxa Esparza via curl-library
2021-05-27 15:30:02 UTC
Permalink
C:\username\2021_NN_Log_Analyzer>C:\Users\username\Downloads\curl-7.76.1-win
64-mingw\bin\curl -i -X POST https://CAMERAIP:PORT/axis-cgi/time.cgi -H
"Content-Type:application/json" --data "{\"apiVersion\":
\"1.0\",\"context\": \"Client defined request ID\",\"method\":
\"getDateTimeInfo\"}
curl: (77) error setting certificate verify locations: CAfile:
"C:\Users\username\AppData\Roaming\Microsoft\SystemCertificates\My\Certifica
tes\curl-ca-bundle.crt" CApath: none


The error is the previous one. I don't understand what you mention: " Your
curl image was built or is instructed to read a ca-cert file that causes
OpenSSL to return error."

The version is next: curl-7.76.1-win64-mingw\bin\curl

And yes, the ca-cert exists.

Expecting your answer, thanks!!



-----Mensaje original-----
De: Daniel Stenberg <***@haxx.se>
Enviado el: jueves, 27 de mayo de 2021 15:10
Para: Arantxa Esparza via curl-library <curl-***@cool.haxx.se>
CC: Arantxa Esparza <***@begirale.com>
Asunto: Re: WIN - Command Prompt - Curl: (77) error setting certificate
verify locations

On Thu, 27 May 2021, Arantxa Esparza via curl-library wrote:

Please show error messages as text, not as images. Some of us still read
emails using text only.
Post by Arantxa Esparza via curl-library
I'm getting this error once and again and I don't know how to deal with it.
Curl: (77) error setting certificate verify locations: ..
Your curl image was built or is instructed to read a ca-cert file that
causes OpenSSL to return error. Does it really exist and is readable there?
--
/ daniel.haxx.se
| Commercial curl support up to 24x7 is available!
| Private help, bug fixes, support, ports, new features
| https://www.wolfssl.com/contact/

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-lib
René Berber via curl-library
2021-05-27 15:52:45 UTC
Permalink
Post by Arantxa Esparza via curl-library
C:\username\2021_NN_Log_Analyzer>C:\Users\username\Downloads\curl-7.76.1-win
64-mingw\bin\curl -i -X POST https://CAMERAIP:PORT/axis-cgi/time.cgi -H
\"getDateTimeInfo\"}
"C:\Users\username\AppData\Roaming\Microsoft\SystemCertificates\My\Certifica
tes\curl-ca-bundle.crt" CApath: none
------------------------------------------------------------------^^^^^^^^^

That seems wrong, the actual path has a space in it, the quoted path
only shows a botched path.

It should be:

\My Certificates\

Something tried to quote the space, but it did it wrong and using shell
escape, which happens to be the MS path separator.
--
R.Berber
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Eti
René Berber via curl-library
2021-05-27 16:01:27 UTC
Permalink
Oops! Sorry.

Disregard my response, there is a path with /My/Certificates/.

I have no idea if it was created wrong, and/or if it works with curl,
but there are files in there (listing from Cygwin):

$ ll
/cygdrive/c/Users/reneb/AppData/Roaming/Microsoft/SystemCertificates/My/Certificates/
total 24K
drwxr-xr-x+ 1 reneb reneb 0 Aug 19 2020 ./
drwxrwx---+ 1 SYSTEM SYSTEM 0 Nov 20 2020 ../
-rwxr-xr-x+ 1 reneb reneb 850 Dec 24 21:14
0788B8E85BDAA326BCBC403A9AC97EF3D3B5897F*
-rwxr-xr-x+ 1 reneb reneb 1.9K Aug 19 2020
1DC53D4EF8E9FD009CBCC76F100CF1DF5A189044*
-rwxr-xr-x+ 1 reneb reneb 1.5K Dec 31 2019
51650463C1D0F540E0D17445A4A97C2E50CDF506*
-rwxr-xr-x+ 1 reneb reneb 1.8K Aug 19 2020
80E4DA7D5C3BA441D6119AA77F068FF09142D2B7*
-rwxr-xr-x+ 1 reneb reneb 1.9K Aug 19 2020
A30F60D693F924BACF8D497AB92FDE0405DFA20B*
--
R.Berber
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquett
Loading...