Article View: news.software.nntp
Article #65978SSL and inn
From: cira
Date: Mon, 07 Jul 2003 22:26
Date: Mon, 07 Jul 2003 22:26
68 lines
4215 bytes
4215 bytes
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 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
I enable debugging in /etc/syslog.conf
news.debug /var/log/news/news.debug
The inn2-ssl package contains only one binary:
/usr/lib/news/nnrpd-ssl
If I start nnrpd-ssl separately after inn2 is running like
this: `/usr/lib/news/nnrpd-ssl -D -f -S -p 563` netstat
reports that port 563 has indeed been opened. But
/var/log/news/news.debug reports:
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]
Humm
ll /etc/news/nnrpd-cert.pem
-rw----r-- 1 root news 1289 Jul 2 09:15 nnrpd-cert.pem
chmod g+r /etc/news/nnrpd-cert.pem
Jul 7 12:51:12 chaljin nnrpd-ssl[20427]: bad ownership or permissions on private key '/etc/news/nnrpd-cert.pem'
Jul 7 12:51:12 chaljin nnrpd-ssl[20427]: error initializing TLS: [CA_file: ] [CA_path: /etc/news] [cert_file: /etc/news/nnrpd-cert.pem] [key_file: /etc/news/nnrpd-key.pem]
But nnrpd-cert.pem isn't the private key, nnrpd-key.pem is, isn't it?
I've tried numerous other permissions but either nnrpd-ssl complains
that it can't read the certificate or that the permissions are bad.
Everything seems to work without SSL, I can log in, be
authenticated, read, post, etc.
Just as an aside; I had another inn installation, 2.3.2 and
the system had a 300+ day uptime during which inn had clicked
along perfectly. I brought the system down to change out
some of the hardware, brought it back up, then a few hours
later when the inn cron jobs ran I was mortified to receive
an email notice informing me that all my messages had been
expired, despite having "*:A:never:never:never" in expire.ctl .
It had been an openlinux 3.1.1 and now seemed a good time
to migrate to debian. I had backups though, so all was not
lost. But it bothers me that I don't see why it did that.
I guess the reboot triggered an expire -- but of everything?
I have inn 2.4 now, so it's only a question of curiosity and
placating fears about messages vanishing from under my nose.
--
.''`. /\/'`\ sam_george@comcast.net
: :' : .::/:::::.. . irc://fslc.usu.edu/#cira
`. `' ) .//::(:###( )::.._/^ gps:41°45'N 111°49'W
`- ..:@://" ,|) _/. uin:4577509 gpg:1024D/A7AAF777
Technical Details
Message-ID:
<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!nntp.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <Wpidnf0j9pAgnJeiXTWJgQ@comcast.com> Subject: SSL and inn Date: Mon, 07 Jul 2003 16:26:49 -0600 From: cira <sam_george@comcast.net> 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!nntp.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 07 Jul 2003 18:26:53 -0500 Newsgroups: news.software.nntp Organization: Family of George User-Agent: KNode/0.7.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Lines: 68 NNTP-Posting-Host: 12.255.11.89 X-Trace: sv3-ponNtYKXFAO1/VYPUgrhVtsKg0PlaKz+4SP3gBo4LCB6YmzmoEcjalsrFD2zXqyq7MqzrDzcpLtd6Rk!bWFMl9kbl38a4pOuob5cQPPYNrQ4MoGzbxbxfrBPSYtWBkcQwc2qReaC8KZ0 X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1