🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81111

Does SSL actually work with nnrpd INN2.5-RC2?

#81111
From: Etian
Date: Fri, 29 May 2009 03:30
36 lines
2807 bytes
I got innd running on port 119, with a perl authentication script 
functioning through the wonderfully elegant perl_auth hook. With innd 
running, I start nnrpd on port 563 with SSL using this (logged on as 
user 'news'):
/usr/local/inn/bin/nnrpd -D -p 563 -S
And it starts without error, but when I try to SSH to port 563, the 
connection is instantly cut off, and I find this in the logs:
error initializing TLS: [CA_file: ] [CA_path: ] [cert_file: 
/usr/local/inn/lib/cert.pem] [key_file: /usr/local/inn/lib/key.pem]

I had created the certificate first with 'make cert', and got the error 
message. I made the certificates over again meticulously following the 
directions in man nnrpd from the openssl command line, plus chmod'ing 
and chown'ing. And I got the same error.

Googling the error text led me back to this newsgroup, where another 
user, who couldn't make it work either, had something for CA_file and 
CA_path.  So I did likewise, and it still doesn't work, but now I get a 
2-line error message in the logs:
  bad ownership or permissions on private key 
"/usr/local/inn/lib/cert.pem': private key must be mode 600 and owned by 
uid 9
error initializing TLS: [CA_file: /usr/local/inn/lib/cert.pem] [CA_path: 
/usr/local/inn/lib] [cert_file: /usr/local/inn/lib/cert.pem] [key_file: 
/usr/local/inn/lib/key.pem]

I've checked and double-checked the mode and ownership of cert.pem, and 
it is as it should be.

I've also tried starting it from innd by setting inn.conf with port 563 
and the -S flag for nnrpdflags, and had the same error.

Any suggestions?

Etian
sonic-news
Technical Details
Message-ID: <hFITl.120511$5N7.59250@newsfe09.iad>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.246.MISMATCH!nx02.iad01.newshosting.com!newshosting.com!69.16.185.16.MISMATCH!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!newsfe09.iad.POSTED!e38f14da!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <hFITl.120511$5N7.59250@newsfe09.iad>
Subject: Does SSL actually work with nnrpd INN2.5-RC2?
Date: Thu, 28 May 2009 21:30:20 -0600
From: Etian <54698212@sonic-news.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.246.MISMATCH!nx02.iad01.newshosting.com!newshosting.com!69.16.185.16.MISMATCH!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!newsfe09.iad.POSTED!e38f14da!not-for-mail
User-Agent: Thunderbird 2.0.0.21 (X11/20090318)
MIME-Version: 1.0
Newsgroups: news.software.nntp
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 36
X-Complaints-To: abuse@Sonic-News.com--send only the headers and the reason
 for your complaint
NNTP-Posting-Date: Fri, 29 May 2009 03:30:21 UTC
Organization: Sonic-News.com--complete, high-retention, from $3.99/month