[stunnel-users] CRLPath not working

This is a discussion on [stunnel-users] CRLPath not working within the Stunnel Users forums, part of the Networking and Network Related category; This is a multi-part message in MIME format. ------_=_NextPart_001_01C68E7E.621B6C2B Content-Type: multipart/alternative; boundary="----_=_NextPart_002_01C68E7E....


Go Back   Usenet Forums > Networking and Network Related > Stunnel Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-13-2006
Nagasundaram, Sekhar
 
Posts: n/a
Default [stunnel-users] CRLPath not working

This is a multi-part message in MIME format.

------_=_NextPart_001_01C68E7E.621B6C2B
Content-Type: multipart/alternative;
boundary="----_=_NextPart_002_01C68E7E.621B6C2B"


------_=_NextPart_002_01C68E7E.621B6C2B
Content-Type: text/plain;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable


Mike:

Here are the configuration and the log files as you requested....

---------------------------------------------BEGIN CONFIG
---------------------------------
# switch-simulator stunnel configuration file
# Copyright by Michal Trojnara 2002
=20
# Certs and keys
cert =3D /etc/certs/demoedge2-cert.pem
key =3D /etc/keys/demoedge2-key.pem
=20
# PID is created inside chroot jail
pid =3D /var/opt/stunnel/stunnel_server.pid
=20
# Authentication stuff
verify =3D 2
options =3D NO_SSLv2
=20
# don't forget about c_rehash CApath
# it is located inside chroot jail:
=20
CApath =3D /etc/CApath
=20
# CRL path or file (inside chroot jail):
CRLpath =3D /etc/crl
=20
=20
# Some debugging stuff

debug =3D local4.5
output =3D /var/opt/log/pras_test_server.log
=20
# Use it for client mode
#client =3D no
=20
# Service-level configuration
=20
[APF]
accept =3D 10.172.86.128:51101
connect =3D 127.0.0.1:50111

----------------------------------------------END CONFIG
----------------------------------
--------------------------------------------- BEGIN LOG FILE
-------------------------------


2006.06.11 19:27:25 LOG5[8839:7]: CA CRL: Issuer: /C=3DUS/O=3DVISA CRL
ISSUER>, lastUpdate: Jun 9 07:00:02 2006 GMT, nextUpdate: Jun 10
08:00:02 2006 GMT
2006.06.11 19:27:25 LOG4[8839:7]: Found CRL is expired - revoking all
certificates until you get updated CRL
2006.06.11 19:27:25 LOG3[8839:7]: SSL_accept: 140890B2:
error:140890B2:SSL routines:SSL3_GET_CLIENT_CERTIFICATE:no certificate
returned
2006.06.11 19:27:25 LOG5[8839:7]: Connection reset: 0 bytes sent to SSL,
0 bytes sent to socket
2006.06.12 17:41:52 LOG5[8839:8]: APF connected from 10.172.86.96:35225
2006.06.12 17:41:52 LOG5[8839:8]: VERIFY OK: depth=3D2,
/C=3DUS/O=3DVISA/OU=3DVisa International Service Association/CN=3DTEST =
Visa Info
Delivery Root CA
2006.06.12 17:41:52 LOG5[8839:8]: CA CRL: Issuer: /C=3DUS/O=3DVISA CRL
ISSUER>, , lastUpdate: Jun 9 07:00:02 2006 GMT, nextUpdate: Jun 10
08:00:02 2006 GMT
2006.06.12 17:41:52 LOG4[8839:8]: Found CRL is expired - revoking all
certificates until you get updated CRL
2006.06.12 17:41:52 LOG3[8839:8]: SSL_accept: 140890B2:
error:140890B2:SSL routines:SSL3_GET_CLIENT_CERTIFICATE:no certificate
returned
2006.06.12 17:41:52 LOG5[8839:8]: Connection reset: 0 bytes sent to SSL,
0 bytes sent to socket
2006.06.12 23:01:08 LOG5[8839:9]: APF connected from 10.172.86.96:35371
2006.06.12 23:01:08 LOG5[8839:9]: VERIFY OK: depth=3D2, <VISA CA>
2006.06.12 23:01:08 LOG5[8839:9]: CA CRL: Issuer: /C=3DUS/O=3DVISA CRL
ISSUER>, lastUpdate: Jun 9 07:00:02 2006 GMT, nextUpdate: Jun 10
08:00:02 2006 GMT
2006.06.12 23:01:08 LOG4[8839:9]: Found CRL is expired - revoking all
certificates until you get updated CRL
2006.06.12 23:01:08 LOG3[8839:9]: SSL_accept: 140890B2:
error:140890B2:SSL routines:SSL3_GET_CLIENT_CERTIFICATE:no certificate
returned
2006.06.12 23:01:08 LOG5[8839:9]: Connection reset: 0 bytes sent to SSL,
0 bytes sent to socket

------------------------------------------- END LOG FILE
--------------------------------------
On 2006-06-12, at 22:17, Nagasundaram, Sekhar wrote:
> We download crls everyday from a CRL server using LDAP and a cronjob.
> These CRLs are stored in the CRLpath directory along with its hash.
> It appears that the stunnel is not refreshing its cache, and it
> still shows "Found CRL is expired - revoking all certificates until
> you get updated CRL" when we try to connect to it even though there is


> a
> New and valid CRL in the CRLPath folder. Is there a special option
> In Stunnel configuration for it to recognize/cache/add the new hash=20
> file


Just to make sure: the problem disappears after restarting stunnel,=20
right?

The simple workaround could be disabling all SSL caches:
../configure --with-threads=3Dfork
make clean
make
make install

Can you send your stunnel.conf and debug log?

TIA,
Mike


Sekhar Nagasundaram
<<Nagasundaram, Sekhar.vcf>>=20

------_=_NextPart_002_01C68E7E.621B6C2B
Content-Type: text/html;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7232.36">
<TITLE>[stunnel-users] CRLPath not working </TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<BR>

<P><FONT SIZE=3D2 FACE=3D"Palatino Linotype">Mike:</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Palatino Linotype">Here are the configuration =
and the log files as you requested….</FONT>
</P>

<P><B><FONT SIZE=3D2 FACE=3D"Palatino =
Linotype">---------------------------------------------BEGIN CONFIG =
---------------------------------</FONT></B>

<BR><FONT FACE=3D"Times New Roman"># switch-simulator stunnel =
configuration file</FONT>

<BR><FONT FACE=3D"Times New Roman"># Copyright by Michal Trojnara =
2002</FONT>

<BR><FONT FACE=3D"Times New Roman">&nbsp;</FONT>

<BR><FONT FACE=3D"Times New Roman"># Certs and keys</FONT>

<BR><FONT FACE=3D"Times New Roman">cert =3D =
/etc/certs/demoedge2-cert.pem</FONT>

<BR><FONT FACE=3D"Times New Roman">key =3D =
/etc/keys/demoedge2-key.pem</FONT>

<BR><FONT FACE=3D"Times New Roman">&nbsp;</FONT>

<BR><FONT FACE=3D"Times New Roman"># PID is created inside chroot =
jail</FONT>

<BR><FONT FACE=3D"Times New Roman">pid =3D =
/var/opt/stunnel/stunnel_server.pid</FONT>

<BR><FONT FACE=3D"Times New Roman">&nbsp;</FONT>

<BR><FONT FACE=3D"Times New Roman"># Authentication stuff</FONT>

<BR><FONT FACE=3D"Times New Roman">verify =3D 2</FONT>

<BR><FONT FACE=3D"Times New Roman">options =3D NO_SSLv2</FONT>

<BR><FONT FACE=3D"Times New Roman">&nbsp;</FONT>

<BR><FONT FACE=3D"Times New Roman"># don't forget about c_rehash =
CApath</FONT>

<BR><FONT FACE=3D"Times New Roman"># it is located inside chroot =
jail:</FONT>

<BR><FONT FACE=3D"Times New Roman">&nbsp;</FONT>

<BR><FONT FACE=3D"Times New Roman">CApath =3D /etc/CApath</FONT>

<BR><FONT FACE=3D"Times New Roman">&nbsp;</FONT>

<BR><FONT FACE=3D"Times New Roman"># CRL path or file (inside chroot =
jail):</FONT>

<BR><FONT FACE=3D"Times New Roman">CRLpath =3D /etc/crl</FONT>

<BR><FONT FACE=3D"Times New Roman">&nbsp;</FONT>

<BR><FONT FACE=3D"Times New Roman">&nbsp;</FONT>

<BR><FONT FACE=3D"Times New Roman"># Some debugging stuff</FONT>
</P>

<P><FONT FACE=3D"Times New Roman">debug =3D local4.5</FONT>

<BR><FONT FACE=3D"Times New Roman">output =3D =
/var/opt/log/pras_test_server.log</FONT>

<BR><FONT FACE=3D"Times New Roman">&nbsp;</FONT>

<BR><FONT FACE=3D"Times New Roman"># Use it for client mode</FONT>

<BR><FONT FACE=3D"Times New Roman">#client =3D no</FONT>

<BR><FONT FACE=3D"Times New Roman">&nbsp;</FONT>

<BR><FONT FACE=3D"Times New Roman"># Service-level configuration</FONT>

<BR><FONT FACE=3D"Times New Roman">&nbsp;</FONT>

<BR><FONT FACE=3D"Times New Roman">[APF]</FONT>

<BR><FONT FACE=3D"Times New Roman">accept&nbsp; =3D =
10.172.86.128:51101</FONT>

<BR><FONT FACE=3D"Times New Roman">connect =3D 127.0.0.1:50111</FONT>
</P>

<P><B><FONT SIZE=3D2 FACE=3D"Palatino =
Linotype">----------------------------------------------END CONFIG =
----------------------------------</FONT></B>

<BR><B><FONT SIZE=3D2 FACE=3D"Palatino =
Linotype">--------------------------------------------- BEGIN LOG FILE =
-------------------------------</FONT></B>
</P>
<BR>

<P><FONT FACE=3D"Times New Roman">2006.06.11 19:27:25 LOG5[8839:7]: =
</FONT><FONT COLOR=3D"#FF0000" FACE=3D"Times New Roman">CA CRL: Issuer: =
/C=3DUS/O=3DVISA CRL ISSUER&gt;</FONT><FONT FACE=3D"Times New Roman">, =
lastUpdate: Jun&nbsp; 9 07:00:02 2006 GMT, nextUpdate: Jun 10 08:00:02 =
2006 GMT</FONT></P>

<P><FONT FACE=3D"Times New Roman">2006.06.11 19:27:25 LOG4[8839:7]: =
Found CRL is expired - revoking all certificates until you get updated =
CRL</FONT>

<BR><FONT FACE=3D"Times New Roman">2006.06.11 19:27:25 LOG3[8839:7]: =
SSL_accept: 140890B2: error:140890B2:SSL =
routines:SSL3_GET_CLIENT_CERTIFICATE:no certificate returned</FONT></P>

<P><FONT FACE=3D"Times New Roman">2006.06.11 19:27:25 LOG5[8839:7]: =
Connection reset: 0 bytes sent to SSL, 0 bytes sent to socket</FONT>

<BR><FONT FACE=3D"Times New Roman">2006.06.12 17:41:52 LOG5[8839:8]: APF =
connected from 10.172.86.96:35225</FONT>

<BR><FONT FACE=3D"Times New Roman">2006.06.12 17:41:52 LOG5[8839:8]: =
VERIFY OK: depth=3D2, /C=3DUS/O=3DVISA/OU=3DVisa International Service =
Association/CN=3DTEST Visa Info Delivery Root CA</FONT></P>

<P><FONT FACE=3D"Times New Roman">2006.06.12 17:41:52 LOG5[8839:8]: =
</FONT><FONT COLOR=3D"#FF0000" FACE=3D"Times New Roman">CA CRL: Issuer: =
/C=3DUS/O=3DVISA CRL ISSUER&gt;</FONT><FONT FACE=3D"Times New Roman">, , =
lastUpdate: Jun&nbsp; 9 07:00:02 2006 GMT, nextUpdate: Jun 10 08:00:02 =
2006 GMT</FONT></P>

<P><B><FONT FACE=3D"Times New Roman">2006.06.12 17:41:52 LOG4[8839:8]: =
Found CRL is expired - revoking all certificates until you get updated =
CRL</FONT></B>

<BR><FONT FACE=3D"Times New Roman">2006.06.12 17:41:52 LOG3[8839:8]: =
SSL_accept: 140890B2: error:140890B2:SSL =
routines:SSL3_GET_CLIENT_CERTIFICATE:no certificate returned</FONT></P>

<P><FONT FACE=3D"Times New Roman">2006.06.12 17:41:52 LOG5[8839:8]: =
Connection reset: 0 bytes sent to SSL, 0 bytes sent to socket</FONT>

<BR><FONT FACE=3D"Times New Roman">2006.06.12 23:01:08 LOG5[8839:9]: APF =
connected from 10.172.86.96:35371</FONT>

<BR><FONT FACE=3D"Times New Roman">2006.06.12 23:01:08 LOG5[8839:9]: =
VERIFY OK: depth=3D2, </FONT><FONT COLOR=3D"#FF0000" FACE=3D"Times New =
Roman">&lt;VISA CA&gt;</FONT>

<BR><FONT FACE=3D"Times New Roman">2006.06.12 23:01:08 LOG5[8839:9]: =
</FONT><FONT COLOR=3D"#FF0000" FACE=3D"Times New Roman">CA CRL: Issuer: =
/C=3DUS/O=3DVISA CRL ISSUER&gt;</FONT><FONT FACE=3D"Times New Roman">, =
lastUpdate: Jun&nbsp; 9 07:00:02 2006 GMT, nextUpdate: Jun 10 08:00:02 =
2006 GMT</FONT></P>

<P><FONT FACE=3D"Times New Roman">2006.06.12 23:01:08 LOG4[8839:9]: =
Found CRL is expired - revoking all certificates until you get updated =
CRL</FONT>

<BR><FONT FACE=3D"Times New Roman">2006.06.12 23:01:08 LOG3[8839:9]: =
SSL_accept: 140890B2: error:140890B2:SSL =
routines:SSL3_GET_CLIENT_CERTIFICATE:no certificate returned</FONT></P>

<P><FONT FACE=3D"Times New Roman">2006.06.12 23:01:08 LOG5[8839:9]: =
Connection reset: 0 bytes sent to SSL, 0 bytes sent to socket</FONT>
</P>

<P><B><FONT SIZE=3D2 FACE=3D"Palatino =
Linotype">------------------------------------------- END LOG FILE =
--------------------------------------</FONT></B>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">On 2006-06-12, at 22:17, =
Nagasundaram, Sekhar wrote:<BR>
&gt;<I> We download crls everyday from a CRL server using LDAP and a =
cronjob.<BR>
</I>&gt;<I> These CRLs are stored in the CRLpath directory along with =
its hash.<BR>
</I>&gt;<I> It appears that the stunnel is not refreshing its cache, and =
it<BR>
</I>&gt;<I> still shows &quot;Found CRL is expired - revoking all =
certificates until<BR>
</I>&gt;<I> you get updated CRL&quot; when we try to connect to it even =
though there is<BR>
</I>&gt;<I> a<BR>
</I>&gt;<I> New and valid CRL in the CRLPath folder. Is there a special =
option<BR>
</I>&gt;<I> In Stunnel configuration for it to recognize/cache/add the =
new hash<BR>
</I>&gt;<I> file<BR>
</I><BR>
Just to make sure: the problem disappears after restarting stunnel,<BR>
right?<BR>
<BR>
The simple workaround could be disabling all SSL caches:<BR>
../configure --with-threads=3Dfork<BR>
make clean<BR>
make<BR>
make install<BR>
<BR>
Can you send your stunnel.conf and debug log?<BR>
<BR>
TIA,<BR>
&nbsp;&nbsp;&nbsp;&nbsp; Mike</FONT>
</P>
<BR>

<P><B><FONT COLOR=3D"#808000" SIZE=3D2 FACE=3D"Arial">Sekhar =
Nagasundaram</FONT></B>

<BR><FONT FACE=3D"Arial" SIZE=3D2 COLOR=3D"#000000"> =
&lt;&lt;Nagasundaram, Sekhar.vcf&gt;&gt; </FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_002_01C68E7E.621B6C2B--

------_=_NextPart_001_01C68E7E.621B6C2B
Content-Type: text/x-vcard;
name="Nagasundaram, Sekhar.vcf"
Content-Transfer-Encoding: base64
Content-Description: Nagasundaram, Sekhar.vcf
Content-Disposition: attachment;
filename="Nagasundaram, Sekhar.vcf"

QkVHSU46VkNBUkQNClZFUlNJT046Mi4xDQpOOk5hZ2FzdW5kYX JhbTtTZWtoYXINCkZOOk5hZ2Fz
dW5kYXJhbSwgU2VraGFyDQpPUkc6SW5vdmFudDtHYXRld2F5IE VuZ2luZWVyaW5nDQpUSVRMRTpD
aGllZiBTeXN0ZW1zIEFyY2hpdGVjdA0KVEVMO1dPUks7Vk9JQ0 U6Nig3MjApMjg4OQ0KVEVMO0NF
TEw7Vk9JQ0U6KDY1MCk2MTktNDQ3NA0KQURSO1dPUks6O000LT YwMjc7ODAxIE1ldHJvIENlbnRl
ciBCbHZkLjtGb3N0ZXIgQ2l0eTtDQTs5NDQwNDtVU0ENCkxBQk VMO1dPUks7RU5DT0RJTkc9UVVP
VEVELVBSSU5UQUJMRTpNNC02MDI3PTBEPTBBODAxIE1ldHJvIE NlbnRlciBCbHZkLj0wRD0wQUZv
c3RlciBDaXR5LCBDQSA5NDQwND0wRD0wQVVTQQ0KRU1BSUw7UF JFRjtJTlRFUk5FVDpzbmFnYXN1
bkB2aXNhLmNvbQ0KUkVWOjIwMDYwMzE3VDIzMjE0M1oNCkVORD pWQ0FSRA0K

------_=_NextPart_001_01C68E7E.621B6C2B
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
stunnel-users mailing list
stunnel-users@mirt.net
http://stunnel.mirt.net/mailman/listinfo/stunnel-users

------_=_NextPart_001_01C68E7E.621B6C2B--
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:34 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0