[prev in list] [next in list] [prev in thread] [next in thread] 

List:       clamav-users
Subject:    Re: [clamav-users] database updates blocked
From:       Jona Tallieu <jona () tnt ! be>
Date:       2021-08-18 9:39:32
Message-ID: A09A5993-DEBC-44D1-B9E5-55130A500402 () tnt ! be
[Download RAW message or body]

[Attachment #2 (text/plain)]

Dear all,

Thanks for all the help and info.

I ended up doing a trace of what our custom clamav does at boot time:

90272 open("/etc/pki/tls/certs/ca-bundle.crt", O_RDONLY) = -1 ENOENT (No such file or \
directory) 90272 close(4) = 0
90272 write(1, "* ERROR: Download failed (77)", 30) = 30
90272 write(1, "* ERROR: Message: Problem with the SSL CA cert (path? access \
rights?)\n", 71) = 71

That path is apparently hardcoded in the custom binary we use:

mail: # strings cgpclamav | grep ca bundle
/etc/pki/tls/certs/ca-bundle.crt

As far as I can see that is the path used on RHEL (and derivatives like CentOS). \
Since I didn't find a location to overwrite that path, I made a symlink from \
/etc/pki/tls/certs/ca-bundle.crt to /etc/ssl/certs/ca-certificates.crt, where the \
certificates on Debian are located (provided there by the ca-certificates package).

Now the database updates work again.

Thanks for point me in the right direction!


Regards,

Jona

[http://www.tnt.be/static/emailsig/img/tallieu-tallieu-signature.png]<http://www.tnt.be/>



From: clamav-users <clamav-users-bounces@lists.clamav.net> on behalf of "Micah Snyder \
                (micasnyd) via clamav-users" <clamav-users@lists.clamav.net>
Reply-To: ClamAV users ML <clamav-users@lists.clamav.net>
Date: Tuesday, 17 August 2021 at 18:07
To: ClamAV users ML <clamav-users@lists.clamav.net>
Cc: "Micah Snyder (micasnyd)" <micasnyd@cisco.com>
Subject: Re: [clamav-users] database updates blocked
Resent-From: <jona@mail.tnt.be>
Resent-Date: Tuesday, 17 August 2021 at 18:07

If you're running into the CA cert problem with FreshClam because your CA certificate \
bundle is in a non-standard place, you can also set the CURL_CA_BUNDLE environment to \
point to the file holding one or more certificates.  FreshClam and ClamSubmit will \
check that environment variable and use it instead of the default openssl CA path.

My apologies that this isn't in the documentation (yet). I will add it today. \
https://github.com/Cisco-Talos/clamav/issues/175


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:-webkit-standard;
	panose-1:2 11 6 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
p.xmsonormal, li.xmsonormal, div.xmsonormal
	{mso-style-name:x_msonormal;
	margin:0cm;
	font-size:12.0pt;
	font-family:"Calibri",sans-serif;}
span.EmailStyle23
	{mso-style-type:personal-reply;
	font-family:"Arial",sans-serif;
	font-weight:normal;
	font-style:normal;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="en-BE" link="#0563C1" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">Dear \
all,<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span lang="EN-US" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">Thanks for all the \
help and info.<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span lang="EN-US" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">I ended up doing a \
trace of what our custom clamav does at boot time:<o:p></o:p></span></p> <p \
class="MsoNormal"><span lang="EN-US" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span lang="EN-US" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">90272 \
open(&quot;/etc/pki/tls/certs/ca-bundle.crt&quot;, O_RDONLY) = -1 ENOENT (No such \
file or directory)<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">90272 close(4) = \
0<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">90272 write(1, \
&quot;* ERROR: Download failed (77)&quot;, 30) = 30<o:p></o:p></span></p> <p \
class="MsoNormal"><span lang="EN-US" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">90272 write(1, \
&quot;* ERROR: Message: Problem with the SSL CA cert (path? access rights?)\n&quot;, \
71) = 71<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span lang="EN-US" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">That path is \
apparently hardcoded in the custom binary we use:<o:p></o:p></span></p> <p \
class="MsoNormal"><span lang="EN-US" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span lang="EN-US" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">mail: # strings \
cgpclamav | grep ca bundle<o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US" style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">/etc/pki/tls/certs/ca-bundle.crt<o:p></o:p></span></p>
 <p class="MsoNormal"><span lang="EN-US" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span lang="EN-US" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">As far as I can see \
that is the path used on RHEL (and derivatives like CentOS). Since I didn't find a \
location to overwrite that path, I made a symlink from \
/etc/pki/tls/certs/ca-bundle.crt  to /etc/ssl/certs/ca-certificates.crt, where the \
certificates on Debian are located (provided there by the ca-certificates \
package).<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span lang="EN-US" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">Now the database \
updates work again.<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span lang="EN-US" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">Thanks for point me \
in the right direction!<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span lang="EN-US" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span lang="EN-US" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">Regards,<o:p></o:p></span></p>
 <p class="MsoNormal"><span lang="EN-US" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span lang="EN-US" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">Jona<o:p></o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif"><o:p>&nbsp;</o:p></span></p>
 <div>
<p class="MsoNormal"><a href="http://www.tnt.be/" target="_blank"><span lang="EN-US" \
style="font-size:9.0pt;font-family:&quot;-webkit-standard&quot;,serif;color:blue;text-decoration:none"><img \
border="0" width="135" height="147" style="width:1.4062in;height:1.5312in" \
id="_x0000_i1025" src="http://www.tnt.be/static/emailsig/img/tallieu-tallieu-signature.png"></span></a><span \
lang="EN-US" style="font-size:9.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black"><o:p></o:p></span></p>
 </div>
<p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif"><o:p>&nbsp;</o:p></span></p>
 <div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:36.0pt"><b><span \
style="font-size:12.0pt;color:black">From: </span></b><span \
style="font-size:12.0pt;color:black">clamav-users \
&lt;clamav-users-bounces@lists.clamav.net&gt; on behalf of &quot;Micah Snyder \
(micasnyd) via clamav-users&quot; &lt;clamav-users@lists.clamav.net&gt;<br> \
<b>Reply-To: </b>ClamAV users ML &lt;clamav-users@lists.clamav.net&gt;<br> <b>Date: \
</b>Tuesday, 17 August 2021 at 18:07<br> <b>To: </b>ClamAV users ML \
&lt;clamav-users@lists.clamav.net&gt;<br> <b>Cc: </b>&quot;Micah Snyder \
(micasnyd)&quot; &lt;micasnyd@cisco.com&gt;<br> <b>Subject: </b>Re: [clamav-users] \
database updates blocked<br> <b>Resent-From: </b>&lt;jona@mail.tnt.be&gt;<br>
<b>Resent-Date: </b>Tuesday, 17 August 2021 at 18:07<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span \
style="font-size:12.0pt;color:black">If you're running into the CA cert problem with \
FreshClam because your CA certificate bundle is in a non-standard place, you can also \
set the CURL_CA_BUNDLE environment  to point to the file holding one or more \
certificates.&nbsp; FreshClam and ClamSubmit will check that environment variable and \
use it instead of the default openssl CA path. <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span \
style="font-size:12.0pt;color:black"><o:p>&nbsp;</o:p></span></p> </div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span \
style="font-size:12.0pt;color:black">My apologies that this isn't in the \
documentation (yet). I will add it today. <a \
href="https://github.com/Cisco-Talos/clamav/issues/175">https://github.com/Cisco-Talos/clamav/issues/175</a><o:p></o:p></span></p>
 </div>
<div>
<div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="xmsonormal" style="margin-left:72.0pt"><span \
style="font-size:11.0pt">&nbsp;</span><o:p></o:p></p> </div>
</blockquote>
</div>
</div>
</div>
</body>
</html>



_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml

--===============9142695111648774593==--

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic