Article View: news.software.nntp
Article #66024Re: SSL and inn
From: cira
Date: Tue, 08 Jul 2003 22:59
Date: Tue, 08 Jul 2003 22:59
109 lines
5569 bytes
5569 bytes
Jeffrey M. Vinocur wrote:
> In article <Wpidnf0j9pAgnJeiXTWJgQ@comcast.com>,
> cira <sam_george@comcast.net> wrote:
>>Are there instructions somewhere on how to set up INN to
>>use SSL?
*Creates instructions for setting up INN to use SSL*
http://spishack.com/~cira/comp/doc/innpresentation/
> Not that I know of; few people have trouble. (Perhaps few people
> try it.)
I suspect you are correct.
>>openssl req -new -x509 -nodes -days 1825 \
>> -keyout /etc/news/nnrpd-key.pem -out /etc/news/nnrpd-cert.pem
>
> Glancing at the 'cert' target in the makefile, I notice that the
> same file is passed to both -keyout and -out by default. I don't
> know if this is important.
*examines Makefile*
openssl req -new -x509 -nodes -out /etc/news/cert.pem -days 1825 \
-keyout /etc/news/cert.pem
chown news. /etc/news/cert.pem
chmod 640 /etc/news/cert.pem
*edit /etc/sasl.conf appropriately*
Jul 8 10:11:15 chaljin nnrpd-ssl[7793]: bad ownership or permissions on private key '/etc/news/cert.pem'
Jul 8 10:11:15 chaljin nnrpd-ssl[7793]: error initializing TLS: [CA_file: ] [CA_path: /etc/news] [cert_file: /etc/news/cert.pem] [key_file: /etc/news/cert.pem]
chown root. /etc/news/cert.pem
Jul 8 10:17:14 chaljin nnrpd-ssl[7972]: unable to get certificate from '/etc/news/cert.pem'
chown news.root /etc/news/cert.pem
chmod 600 /etc/news/cert.pem
Jul 8 11:06:20 chaljin nnrpd-ssl[8759]: starttls: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits) no authentication
Oh! That worked!
*fiddles*
Ok. couple of problems. It looks like when you use seperate
files for the private and public keys that nnrpd-ssl gets
confused when logging problems about which key is which.
It says "private key" but then it lists the file which holds
the public key. Changing permissions on the real private
key heals the situation. Permissions of 640 on the private
key is not acceptable to nnrpd-ssl
Wishlist item: nnrpd-ssl reports that the private key should
have permissions 600 (or 400). And that it should report the
correct file.
notice: it didn't matter wheather the public and the private
keys where stored in the same file or in seperate files. Only
that the keys had the correct permissions.
>>The inn2-ssl package contains only one binary:
>> /usr/lib/news/nnrpd-ssl
>
> Ok, I don't know anything about the Debian packages, but we'll
> ignore that for now.
>
>
>>-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'
>
> What about making it o-r as well? The expected mode seems to be
> 640.
0 root@chaljin:/etc/news 156# chown root.news nnrpd-cert.pem
0 root@chaljin:/etc/news 157# chmod 640 nnrpd-cert.pem
0 root@chaljin:/etc/news 158# ll nnrpd-cert.pem
-rw-r----- 1 root news 1289 Jul 2 09:15 nnrpd-cert.pem
Jul 8 09:43:02 chaljin nnrpd-ssl[7293]: bad ownership or permissions on private key '/etc/news/nnrpd-cert.pem'
Jul 8 09:43:02 chaljin nnrpd-ssl[7293]: error initializing TLS: [CA_file: ] [CA_path: /etc/news] [cert_file: /etc/news/nnrpd-cert.pem] [key_file: /etc/news/nnrpd-key.pem]
>>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 .
>
> Huh. That should certainly not have happened.
>
> There have been several reports of this behavior recently, but no
> one's ever been able to reproduce it.
Well, if any one would like to pick apart a decomissioned
machine that had this happen, I have one.
--
.''`. /\/'`\ 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:
<jmGdndEiKvFGx5aiXTWJjA@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-mailReferences:
<Wpidnf0j9pAgnJeiXTWJgQ@comcast.com> <bedifp$s6u$2@puck.litech.org>Show Full Headers
Complete Article Headers
Message-ID: <jmGdndEiKvFGx5aiXTWJjA@comcast.com> Subject: Re: SSL and inn Date: Tue, 08 Jul 2003 16:59:17 -0600 From: cira <sam_george@comcast.net> References: <Wpidnf0j9pAgnJeiXTWJgQ@comcast.com> <bedifp$s6u$2@puck.litech.org> 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: Tue, 08 Jul 2003 18:59:23 -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: 109 NNTP-Posting-Host: 12.255.11.89 X-Trace: sv3-aXK6HPoptlK0ULTiPyTMAxOi5EkFVGJ6kAQsumspOu1mSBYJF/kar8JUB1DYKfz9kifgQNTQHl+G3dM!dusSUtxEy3ntI29lEDpKPEY7wrPHylP+AiFWI73wHROEzIZ9eOyAnrvEDxah 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