🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #66012

Re: SSL and inn

#66012
From: Erik Klavon
Date: Tue, 08 Jul 2003 17:46
40 lines
2641 bytes
cira wrote:
> Are there instructions somewhere on how to set up INN to 
> use SSL?  I haven't been able to get it to work.  I'm using
> the SSL stuff because both the usernames/passwords & the
> data in the messages are semi-sensitive.
> 
> The system is Debian Woody.
> The packages are: 
>     inn2 (2.4.0-3)  
>     inn2-inews (2.4.0-3) 
>     inn2-ssl (2.4.0-3)

I've compiled from source, so YMMV WRT my experience.

> 
> I generated a key like this:
> 
> openssl req -new -x509 -nodes -days 1825 \
>     -keyout /etc/news/nnrpd-key.pem -out /etc/news/nnrpd-cert.pem
> chown root.news /etc/news/nnrpd-key.pem
> chmod 640 /etc/news/nnrpd-key.pem

Hmmm, what does your sasl.conf say?

> Jul  7 12:44:35 chaljin nnrpd-ssl[20261]: unable to get certificate from '/etc/news/nnrpd-cert.pem'
> Jul  7 12:44:35 chaljin nnrpd-ssl[20261]: error initializing TLS: [CA_file: ] [CA_path: /etc/news] [cert_file: /etc/news/nnrpd-cert.pem] [key_file: /etc/news/nnrpd-key.pem]

Yeah, so I had errors like these in 2.4 which I fixed by putting the 
cert and private key in a single file and pointing sasl.conf to that 
file only:

tls_ca_path:            /news/lib
tls_cert_file:          /news/lib/cert.pem  # cert.pem contains both the 
cert AND private key
tls_key_file:           /news/lib/cert.pem

Hope that helps,

Erik
Technical Details
Message-ID: <beevrb$2gp1$1@geode.berkeley.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!cyclone-sf.pbi.net!216.218.192.242!news.he.net!news-hog.berkeley.edu!ucberkeley!agate.berkeley.edu!agate!geode.berkeley.edu!not-for-mail
References: <Wpidnf0j9pAgnJeiXTWJgQ@comcast.com>

Show Full Headers
Complete Article Headers
Message-ID: <beevrb$2gp1$1@geode.berkeley.edu>
Subject: Re: SSL and inn
Date: Tue, 08 Jul 2003 10:46:25 -0700
From: Erik Klavon <erik@ack.berkeley.edu>
References: <Wpidnf0j9pAgnJeiXTWJgQ@comcast.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.20140818.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!cyclone-sf.pbi.net!216.218.192.242!news.he.net!news-hog.berkeley.edu!ucberkeley!agate.berkeley.edu!agate!geode.berkeley.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: University of California, Berkeley
Lines: 40
NNTP-Posting-Host: nofx.net.berkeley.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: geode.berkeley.edu 1057686675 82721 128.32.155.7 (8 Jul 2003 17:51:15
 GMT)
X-Complaints-To: usenet@agate.berkeley.edu
NNTP-Posting-Date: Tue, 8 Jul 2003 17:51:15 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030615
X-Accept-Language: en-us, en
In-Reply-To: <Wpidnf0j9pAgnJeiXTWJgQ@comcast.com>