N
N
Nikolay Baranenko2022-01-31 16:41:47
linux
Nikolay Baranenko, 2022-01-31 16:41:47

How to change the default path to the folder with CAfile?

On one of the hosts, anaconda was rolled up and the path to CA_BUNDLE was redefined

CAfile: /data/anaconda2/ssl/cacert.pem

instead,

CAfile: /etc/pki/tls/certs/ca-bundle.crt

which leads to abuse in CURL

curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.


a temporary solution is to activate ENV

export CURL_CA_BUNDLE=/etc/ssl/certs/ca-bundle.crt

, but this all crashes after a reboot,

How to change the default path to the folder with CAfile?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ruslan Fedoseev, 2022-01-31
@martin74ua

ask the question differently. where the default environment variables are set...
if I were you, I would rummage around in /etc/profile.d/ and similar directories....

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question