Article View: alt.privacy.anon-server
Article #211018Re: Runaway with TLS/SSL Connection
From: Anonymous
Date: Tue, 03 Oct 2006 21:21
Date: Tue, 03 Oct 2006 21:21
70 lines
3828 bytes
3828 bytes
On Tue, 3 Oct 2006, Zax <admin@bananasplit.info> wrote: >I can't query your TLS service on any ports: Hi, Zax. Pardon if you already know all of this, I'll just put it all in the archives. You can't use STARTTLS in this situation. (You could with the way that Mercury responded, but not for stunnel. When Mercury is configured for SSL, it accepts a normal TCP connection and then allows for a switch to encryption if and when it receives the STARTTLS command. When stunnel opens a secure server socket, it doesn't listen for STARTTLS.) But running--> openssl s_client -connect runaway.dynalias.org:587 will work fine. > >openssl s_client -starttls smtp -connect runaway.dynalias.org:25 >CONNECTED(00000003) >22903:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown >protocol:s23_clnt.c:567: I believe that the above is telling you that you had a plain connection to Mercury, that stunnel issued EHLO and did not see STARTTLS in Mercury's reply (in Runaway's setup). > >openssl s_client -starttls smtp -connect runaway.dynalias.org:587 >CONNECTED(00000003) >read:errno=32 above, you tried a plain connection to a secure listener. The handshake will never be arrived at (because openssl isn't trying that yet), and eventually you time out. > >openssl s_client -starttls smtp -connect runaway.dynalias.org:2525 >CONNECTED(00000003) >22440:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown >protocol:s23_clnt.c:567: > same as for port 25 [more below] > >> ; Authentication stuff >> ;verify = 2 >> ; Don't forget to c_rehash CApath >> ;CApath = certs >> ; It's often easier to use CAfile >> ;CAfile = certs.pem > >This might be causing problems. I've never used stunnel server-side >but I expect you will need a CA file (or path). well no. First off, in this SMTP situation, the client doesn't care who the server is, it only wants a public key from the cert. In fact, you can use stunnel successfully (though not well secured) as server by merely using the supplied and _expired_ test cert. More to the point, though, regarding CAs here: the server stores a file with CAs (and chains) that it sends to the client *if* client auth is required. The client can then select from its own list of certs to find one that is authenticated by one of the server's CAs. IOW, the server can tell the client: give me a client cert that is authenticated/signed by one of my own chosen Certificate Authorities.
Technical Details
Message-ID:
<8UT1LFBS38993.7234027778@twistycreek.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!newsfeed.stanford.edu!newsfeed.news.ucla.edu!usenet01.sei.cmu.edu!nn.andrew.cmu.edu!newsfeeder.srv.cs.cmu.edu!anon.lcs.mit.edu!nym.alias.net!mail2newsReferences:
<ef9o1b$17a$1@bananasplit.info> <QBRY47FA38992.8776736111@anonymous.poster> <eftamn$deb$1@bananasplit.info> <eftl7p$mm8$1@bananasplit.info>Show Full Headers
Complete Article Headers
Message-ID: <8UT1LFBS38993.7234027778@twistycreek.com> Subject: Re: Runaway with TLS/SSL Connection Date: Tue, 03 Oct 2006 21:21:42 +0000 From: Anonymous <anon@comments.header> References: <ef9o1b$17a$1@bananasplit.info> <QBRY47FA38992.8776736111@anonymous.poster> <eftamn$deb$1@bananasplit.info> <eftl7p$mm8$1@bananasplit.info> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!newsfeed.stanford.edu!newsfeed.news.ucla.edu!usenet01.sei.cmu.edu!nn.andrew.cmu.edu!newsfeeder.srv.cs.cmu.edu!anon.lcs.mit.edu!nym.alias.net!mail2news Received-SPF: None; receiver=nym.alias.net; client-ip=70.89.231.62; envelope-from=<remailer@twistycreek.com>; helo=mail.twistycreek.com Newsgroups: alt.privacy.anon-server Comments: This message did not originate from the above address. It was automatically remailed by an anonymous re-mail service. Visit http://www.twistycreek.com/ for details. Contact admin^at^twistycreek^dot^com Mail-To-News-Contact: postmaster@nym.alias.net Organization: mail2news@nym.alias.net Lines: 70