Ya, except:

curl-config -ca
curl-config: command not found

On Fri, Sep 23, 2022 at 10:08 AM Hiebert, Chris <
chris.hiebert@xxxxxxxxxxxxxx> wrote:

When running curl you must currently provide the location of the ca key
store otherwise you get this error:

curl: (60) SSL certificate problem: unable to get local issuer certificate

To set the ca store you specify:
--cacert /QOpenSys/QIBM/UserData/SC1/OpenSSL/cert.pem
--capath /QOpenSys/QIBM/UserData/SC1/OpenSSL/certs

curl -v "https://www.midrange.com"; --cacert
/QOpenSys/QIBM/UserData/SC1/OpenSSL/cert.pem --capath

It looks like you might be able to get the current config value using this
curl-config -ca

However when I run it I do not get any output, making me feel that it has
not been configured.

Chris Hiebert
Senior Programmer/Analyst
Disclaimer: Any views or opinions presented are solely those of the author
and do not necessarily represent those of the company.

From: OpenSource <opensource-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of
Brad Stone
Sent: Friday, September 23, 2022 6:07 AM
To: IBMi Open Source Roundtable <opensource@xxxxxxxxxxxxxxxxxx>
Subject: [IBMiOSS] curl SSL error (60)

Trying to use curl to download a file from a website (really just a trial

since every other method using browsers seems to just restart when right at

the end of the download).

Here's the error:

curl: (60) SSL certificate problem: unable to get local issuer certificate

More details here: https://curl.se/docs/sslcerts.html

Now, the CAs are Godaddy and nothing else reports any errors. The link

provided is little help. Other searches talk about updating the server

(which of course I can't do).

If importing the CAs is the answer where would I put them?

Bradley V. Stone
This is the IBMi Open Source Roundtable (OpenSource) mailing list
To post a message email: OpenSource@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/opensource
or email: OpenSource-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/opensource.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.