Open aram1304 opened 1 year ago
@aram1304 it seems like you may be missing the ca-certificates package. Freshclam will need the certificate bundle in order for HTTPS to work.
Already I updated ca-certificate package. I compared in a diff server ( where it works fine )
ls -l /etc/pki/tls/certs total 220 lrwxrwxrwx. 1 root root 49 Jan 2 15:46 ca-bundle.crt -> /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem lrwxrwxrwx. 1 root root 55 Jan 2 15:46 ca-bundle.trust.crt -> /etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt -rwxr-xr-x. 1 root root 610 Mar 23 2022 make-dummy-cert -rw-r--r--. 1 root root 2516 Mar 23 2022 Makefile -rwxr-xr-x. 1 root root 829 Mar 23 2022 renew-dummy-cert
ls -lR /etc/pki/ca-trust/extracted /etc/pki/ca-trust/extracted: total 4 drwxr-xr-x. 2 root root 35 Jan 4 14:13 java drwxr-xr-x. 2 root root 47 Jan 4 14:13 openssl drwxr-xr-x. 2 root root 101 Jan 4 14:13 pem -rw-r--r--. 1 root root 560 Jul 28 18:29 README
/etc/pki/ca-trust/extracted/java: total 156 -r--r--r--. 1 root root 154622 Jan 4 14:13 cacerts -rw-r--r--. 1 root root 726 Jul 28 18:29 README
/etc/pki/ca-trust/extracted/openssl: total 616 -r--r--r--. 1 root root 623999 Jan 4 14:13 ca-bundle.trust.crt -rw-r--r--. 1 root root 787 Jul 28 18:29 README
/etc/pki/ca-trust/extracted/pem: total 852 -r--r--r--. 1 root root 165613 Jan 4 14:13 email-ca-bundle.pem -r--r--r--. 1 root root 486972 Jan 4 14:13 objsign-ca-bundle.pem -rw-r--r--. 1 root root 898 Jul 28 18:29 README -r--r--r--. 1 root root 212198 Jan 4 14:13 tls-ca-bundle.pem
and both servers are having the same certificates I believe 10.x address probably gets natted or proxied going out with a public addres and port 80 has to get redirected to a port 443 connection. Maybe proxy issue?
It could also be that the openssl used by clamav on your system is looking in the wrong directory for the CA bundle. You could try setting the CURL_CA_BUNDLE
environment variable to poitn to the openssl ca bundle. E.g.
# CURL_CA_BUNDLE=/etc/pki/tls/certs/ca-bundle.crt freshclam
Thanks for the update I tried that and it is not working in my Redhat 7.9 machine
]# CURL_CA_BUNDLE=/etc/pki/tls/certs/ca-bundle.crt freshclam ClamAV update process started at Thu Jan 5 13:38:31 2023 daily database available for update (local version: 26771, remote version: 26772) WARNING: Download failed (60) WARNING: Message: Peer certificate cannot be authenticated with given CA certificates WARNING: Can't download daily.cvd from https://database.clamav.net/daily.cvd Trying again in 5 secs... ^CUpdate process terminated ]# export CURL_CA_BUNDLE=/etc/pki/tls/certs/ca-bundle.crt ]# freshclam ClamAV update process started at Thu Jan 5 13:38:52 2023 daily database available for update (local version: 26771, remote version: 26772) WARNING: Download failed (60) WARNING: Message: Peer certificate cannot be authenticated with given CA certificates WARNING: Can't download daily.cvd from https://database.clamav.net/daily.cvd Trying again in 5 secs... ^CUpdate process terminated
ca-certificates-2022.2.54-74.el7_9.noarch openssl-1.0.2k-25.el7_9.x86_64
If I set DatabaseMirror http://database.clamav.net in the freshclam.conf then it works but per our standard we need to use only https like rest of other environments
Hey Hi. Did you got any solution for this issue ?
Describe the bug
How to reproduce the problem
If I use http in the freshclam.conf then it works I want to use only https