CRL handling in syslog
Shankar Pramanik <[email protected]> Fri, 14 Feb 2025 07:04:57 +0000
| Newsgroups | gmane.comp.syslog-ng |
|---|---|
| Message-ID | <DS7PR07MB773335A832A9B5B2BCF2DE87D2FE2@DS7PR07MB7733.namprd07.prod.outlook.com> |
--===============2727139790143387649==
Content-Language: en-US
Content-Type: multipart/alternative;
boundary="_000_DS7PR07MB773335A832A9B5B2BCF2DE87D2FE2DS7PR07MB7733namp_"
--_000_DS7PR07MB773335A832A9B5B2BCF2DE87D2FE2DS7PR07MB7733namp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
I've configured syslog-ng 3.35.1 to use CRLs but things aren't working as e=
xpected. This is what I've done :
1. Create a self-signed CA and use it to sign a server certificate. The =
server certificate has a CRL distribution point in it.
2. Revoke the server certificate. Generate the revoked CRL and put it on=
the syslog client under /etc/syslog-ng/crl in PEM format. There's a <issue=
r hash>.r0 link to the CRL in this directory.
3. Configure ca-dir and crl-dir in the client's syslog config. Configure=
the client to connect to the remote syslog server.
With this setup, I' d expect the syslog client to reject the server certifi=
cate since it's revoked, but that doesn't happen. The TLS handshake and sub=
sequent communication is successful.
Is there anything that I'm missing ? Any pointers will be appreciated. I ca=
n provide additional details of my setup if needed.
Thanks!
Shankar.
--_000_DS7PR07MB773335A832A9B5B2BCF2DE87D2FE2DS7PR07MB7733namp_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<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:Aptos;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:12.0pt;
font-family:"Aptos",sans-serif;
mso-ligatures:standardcontextual;
mso-fareast-language:EN-US;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
font-size:12.0pt;
font-family:"Aptos",sans-serif;
mso-ligatures:standardcontextual;
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Aptos",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1473139828;
mso-list-type:hybrid;
mso-list-template-ids:-598459624 1074331663 1074331673 1074331675 10743316=
63 1074331673 1074331675 1074331663 1074331673 1074331675;}
@list l0:level1
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-IN" link=3D"#467886" vlink=3D"#96607D" style=3D"word-wrap:=
break-word">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">I’ve configured syslog-ng 3.35.1 to use CRLs b=
ut things aren’t working as expected. This is what I’ve done :
<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<ol style=3D"margin-top:0cm" start=3D"1" type=3D"1">
<li class=3D"MsoListParagraph" style=3D"margin-left:0cm;mso-list:l0 level1 =
lfo1">Create a self-signed CA and use it to sign a server certificate. The =
server certificate has a CRL distribution point in it.<br>
<br>
<o:p></o:p></li><li class=3D"MsoListParagraph" style=3D"margin-left:0cm;mso=
-list:l0 level1 lfo1">Revoke the server certificate. Generate the revoked C=
RL and put it on the syslog client under /etc/syslog-ng/crl in PEM format. =
There’s a <issuer hash>.r0 link to the CRL in this directory.<b=
r>
<br>
<o:p></o:p></li><li class=3D"MsoListParagraph" style=3D"margin-left:0cm;mso=
-list:l0 level1 lfo1">Configure ca-dir and crl-dir in the client’s sy=
slog config. Configure the client to connect to the remote syslog server.<o=
:p></o:p></li></ol>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">With this setup, I’ d expect the syslog client=
to reject the server certificate since it’s revoked, but that doesn&=
#8217;t happen. The TLS handshake and subsequent communication is successfu=
l.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">Is there anything that I’m missing ? Any point=
ers will be appreciated. I can provide additional details of my setup if ne=
eded.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">Thanks!<o:p></o:p></p>
<p class=3D"MsoNormal">Shankar.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>
--_000_DS7PR07MB773335A832A9B5B2BCF2DE87D2FE2DS7PR07MB7733namp_--
--===============2727139790143387649==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq
--===============2727139790143387649==--