πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81116

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

#81116
From: Etian
Date: Fri, 29 May 2009 12:29
65 lines
3600 bytes
Julien Γ‰LIE wrote:
> Hi Etian,
> 
>> /usr/local/inn/bin/nnrpd -D -p 563 -S
>> And it starts without error, but when I try to SSH to port 563
> 
> In order to test, you should use something like:
> 
> openssl s_client -connect your.news.server.com: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]
> 
> It shows that you did not parameter inn.conf.
> I for one use:
> 
> tlscertfile:            /home/news/lib/cert.pem
> tlskeyfile:             /home/news/lib/key.pem
> tlscapath:              /home/news/lib
> #tlscafile:             /home/news/lib/cert.pem
> 
> (after having generated the certificates with "make cert")
> 
>    http://www.eyrie.org/~eagle/software/inn/docs/inn.conf.html
> 
> 
> 
>> 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.
> 
> I think we forgot to explain in the "TLS SUPPORT" section of the nnrpd
> man page that inn.conf should also be updated, and INN restarted.
> Thanks for having seen that!
> 
> CHECKLIST and INSTALL are not more verbose at all on that bit of
> configuration...
> 
> 
>> 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 have:
> 
> % ll lib/*.pem
> -rw-r----- 1 news news 1,2K 2009-04-25 14:52 lib/cert.pem
> -rw------- 1 news news  887 2009-04-25 14:52 lib/key.pem
> 
> But note that I do not define tlscafile in inn.conf; maybe it is the 
> problem
> you have (?)
> 
Yes, that solved it--nothing more than removing the tlscafile line, but 
keeping the tlscapath line (Those two lines are all that's not explained 
in the documentation.  It's intuitive to update inn.conf and restart.)
Technical Details
Message-ID: <GyQTl.1349$3F1.723@newsfe23.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!de-l.enfer-du-nord.net!news.glorb.com!news2.glorb.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe23.iad.POSTED!e38f14da!not-for-mail
References: <hFITl.120511$5N7.59250@newsfe09.iad> <gvnvtj$ge7$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <GyQTl.1349$3F1.723@newsfe23.iad>
Subject: Re: Does SSL actually work with nnrpd INN2.5-RC2?
Date: Fri, 29 May 2009 06:29:25 -0600
From: Etian <54698212@sonic-news.com>
References: <hFITl.120511$5N7.59250@newsfe09.iad> <gvnvtj$ge7$1@news.trigofacile.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!de-l.enfer-du-nord.net!news.glorb.com!news2.glorb.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe23.iad.POSTED!e38f14da!not-for-mail
User-Agent: Thunderbird 2.0.0.21 (X11/20090318)
MIME-Version: 1.0
Newsgroups: news.software.nntp
In-Reply-To: <gvnvtj$ge7$1@news.trigofacile.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 65
X-Complaints-To: abuse@Sonic-News.com--send only the headers and the reason
 for your complaint
NNTP-Posting-Date: Fri, 29 May 2009 12:29:26 UTC
Organization: Sonic-News.com--complete, high-retention, from $3.99/month