Discussion:
77 error when using cURL from cmd line, on Windows 10 for HTTP Post
James Stephenson
2018-02-20 20:32:25 UTC
Permalink
I am new to cURL so forgive me if this is a repeat of previous questions. I
have looked through the archive but cannot find the same setup that I am
dealing with...

I am using the cURL command line program to do an HttpPost to a medical
records company, from a Windows 10 pc.

When I send the request I am getting an error that says:

curl: (77) error setting certificate verify locations:

It then lists a completely unrelated file: CAfile:
C:\RailsInstaller\cacert.pem

with a path of: CApath: none

I am not using anything to do with Rails on this and am really not sure why
it is picking that file to look for the certificate.

Can anyone point me in the right direction?

Thanks,
Jim
杜秀涛
2018-02-21 15:05:51 UTC
Permalink
Is't it possible that some of your environment variable has a value of
'C:\Rails...'?
Post by James Stephenson
I am new to cURL so forgive me if this is a repeat of previous questions.
I have looked through the archive but cannot find the same setup that I am
dealing with...
I am using the cURL command line program to do an HttpPost to a medical
records company, from a Windows 10 pc.
C:\RailsInstaller\cacert.pem
with a path of: CApath: none
I am not using anything to do with Rails on this and am really not sure
why it is picking that file to look for the certificate.
Can anyone point me in the right direction?
Thanks,
Jim
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
杜秀涛
2018-02-21 15:06:37 UTC
Permalink
Is there a chance that some of your environment variable has a value of
'C:\Rails...'?
Post by James Stephenson
I am new to cURL so forgive me if this is a repeat of previous questions.
I have looked through the archive but cannot find the same setup that I am
dealing with...
I am using the cURL command line program to do an HttpPost to a medical
records company, from a Windows 10 pc.
C:\RailsInstaller\cacert.pem
with a path of: CApath: none
I am not using anything to do with Rails on this and am really not sure
why it is picking that file to look for the certificate.
Can anyone point me in the right direction?
Thanks,
Jim
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
James Stephenson
2018-02-21 15:31:50 UTC
Permalink
I found a registry entry that had that reference in it. But the folder and
cacert.pem file did not exist anyplace.

I was able to download a cacert.pem file from cURL's site and put it into a
folder with that name to get around that error though.
Post by 杜秀涛
Is there a chance that some of your environment variable has a value of
'C:\Rails...'?
Post by James Stephenson
I am new to cURL so forgive me if this is a repeat of previous questions.
I have looked through the archive but cannot find the same setup that I am
dealing with...
I am using the cURL command line program to do an HttpPost to a medical
records company, from a Windows 10 pc.
C:\RailsInstaller\cacert.pem
with a path of: CApath: none
I am not using anything to do with Rails on this and am really not sure
why it is picking that file to look for the certificate.
Can anyone point me in the right direction?
Thanks,
Jim
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Ray Satiro
2018-02-22 06:53:38 UTC
Permalink
Post by James Stephenson
I am using the cURL command line program to do an HttpPost to a
medical records company, from a Windows 10 pc.
C:\RailsInstaller\cacert.pem
with a path of: CApath: none
I am not using anything to do with Rails on this and am really not
sure why it is picking that file to look for the certificate.
Where did you get your build of curl? That may be set as the default
location, or:

Check if environment variable CURL_CA_BUNDLE or SSL_CERT_FILE is set.
Also check %APPDATA%\_curlrc for --cacert.

You can put a file curl-ca-bundle.crt in the same directory as curl or
in the system path.



-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://c

Loading...