Article View: news.software.nntp
Article #56486Newbie SSL
From: Simon Waters
Date: Wed, 13 Feb 2002 12:27
Date: Wed, 13 Feb 2002 12:27
40 lines
2571 bytes
2571 bytes
Okay trying to test NNTP over OpenSSL. Fire up innd 2.3.2 Use stunnel 3.22 to map from 563 to 119. Various commands along the lines of "stunnel -u news -g news -T -d 563 -r localhost:119 -p /..../cert.pem" When I use "telnet localhost 119" I get greeting baaner and "authinfo user username" prompts for password. When I use "openssl s_client -connect localhost:563", I see various tunnel and certificate messages suggesting my self-signed certificate is okay, and encryption is in use. I am greeted by the same banner but "authinfo user username" now gives "500 Syntax error or bad command" Log file shows; Feb 13 12:14:11 linux1 innd: localhost connected 16 streaming allowed Feb 13 12:14:19 linux1 innd: localhost:16 bad_command authinfo user username And other commands are echoed as "bad_command" from innd, so it looks like the encryption/decryption is working more or less. Is there some reason why innd will not work like this? Have I missed something simple. Only nagging doubt on the configuration is the box has openssl 0.9.5a as well as 0.9.6 installed, but all server software (i.e. stunnel) picked up 0.9.6, and switching between 0.9.6 and 0.9.5a openssl doesn't affect the problem seen. Oh and yes newsreaders work with authentication on 119, and don't work on 563, as expected. I tried the native OpenSSL stuff in nnrpd, but there is almost no documentation on calling nnrpd correctly, and that approach didn't get any further.
Technical Details
Message-ID:
<3C6A5BB1.5799E987@wretched.demon.co.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dispose.news.demon.net!news.demon.co.uk!demon!wretched.demon.co.uk!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <3C6A5BB1.5799E987@wretched.demon.co.uk> Subject: Newbie SSL Date: Wed, 13 Feb 2002 12:27:29 +0000 From: Simon Waters <Simon@wretched.demon.co.uk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dispose.news.demon.net!news.demon.co.uk!demon!wretched.demon.co.uk!not-for-mail Newsgroups: news.software.nntp Organization: Eighth Layer Limited NNTP-Posting-Host: wretched.demon.co.uk X-NNTP-Posting-Host: wretched.demon.co.uk:193.237.109.203 X-Trace: news.demon.co.uk 1013603250 nnrp-13:3213 NO-IDENT wretched.demon.co.uk:193.237.109.203 X-Complaints-To: abuse@demon.net X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.19 i686) X-Accept-Language: en-GB, en-US, en MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 39