Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL issues #5

Open
darkvertex opened this issue Sep 21, 2022 · 3 comments
Open

SSL issues #5

darkvertex opened this issue Sep 21, 2022 · 3 comments

Comments

@darkvertex
Copy link

Seeing a lot of this when calling https:// urls with valid certs and the calls fail:

curl: (77) error setting certificate verify locations:  CAfile: /etc/ssl/certs/ca-certificates.crt CApath: none

I can bypass it in the meantime by adding --insecure.

@hellojukay
Copy link

+1

1 similar comment
@tiberndt
Copy link

+1

@bittorf
Copy link

bittorf commented Mar 4, 2025

If ca-certificates.crt is missing, you can symlink your ca-bundle or call it directly, see:

[root@box ~]# ls -l /etc/ssl/certs/ca-certificates.crt
ls: cannot access /etc/ssl/certs/ca-certificates.crt: No such file or directory

[root@box ~]# find / -xdev -name ca-bundle.crt
/etc/pki/tls/certs/ca-bundle.crt

# test if it works:
[root@box ~]# curl-static --cacert /etc/pki/tls/certs/ca-bundle.crt https://your-test-call && echo OK
...
OK

# symlink:
[root@box ~]# ln -s /etc/pki/tls/certs/ca-bundle.crt /etc/ssl/certs/ca-certificates.crt && echo OK
OK

# check symlink:
[root@box ~]# ls -l /etc/ssl/certs/ca-certificates.crt
lrwxrwxrwx. 1 root root 32 Mar  4 10:56 /etc/ssl/certs/ca-certificates.crt -> /etc/pki/tls/certs/ca-bundle.crt

# test again:
[root@box ~]# curl-static https://your-test-call && echo OK
...
OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants