🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
13 messages
13 total messages Started by Derek Scollon Mon, 16 Feb 2004 18:55
INN over SSL - RPM installation
#68136
Author: Derek Scollon
Date: Mon, 16 Feb 2004 18:55
18 lines
1974 bytes
Hope someone here can help. I can't find the answer to this on Google or 
in this group's archives and the man pages don't seem to apply to this 
particular problem.

I'm running some private newsgroups on a server which runs RedHat 8. I 
installed INN from the RPM on the RedHat CD and it's set up and doing 
what I need it to do. I'd now like to configure it to communicate over 
SSL, but having installed it as a binary, there is no option to "make 
cert" as advised in the man pages. Therefore, I'd like to ask the 
following...

1. Is there an alternative way to make the certificate?
2. If so, how and what do I then do with it?
3. If not, I can uninstall everything and reinstall from source files, 
but in that case, what files do I need to save to keep all of the 
existing messages (which are set to never expire)?

Thanks in advance.
Re: INN over SSL - RPM installation
#68138
Author: Jeffrey M. Vinocur
Date: Mon, 16 Feb 2004 19:07
42 lines
2658 bytes
In article <40311236$0$4103$5a6aecb4@news.aaisp.net.uk>,
Derek Scollon  <dscollon@scotwebsolutions.com> wrote:
>
>I'd now like to configure it to communicate over 
>SSL, but having installed it as a binary, there is no option to "make 
>cert" as advised in the man pages.

Just since you're here, what version is this?  (If it's 2.4.0,
you need to upgrade to 2.4.1 for security reasons.)


>1. Is there an alternative way to make the certificate?

Sure, if you look in the Makefile you'll see that `make cert`
just runs these four commands:

        $(SSLBIN)/openssl req -new -x509 -nodes \
            -out $(PATHLIB)/cert.pem -days 366 \
            -keyout $(PATHLIB)/cert.pem
        chown $(NEWSUSER) $(PATHLIB)/cert.pem
        chgrp $(NEWSGROUP) $(PATHLIB)/cert.pem
        chmod 600 $(PATHLIB)/cert.pem

So $SSLBIN is the path to `openssl` on your system (if needed),
$PATHLIB is ~news/lib, and $NEWSUSER and $NEWSGROUP are both
"news" unless you customized them for your system.


>3. If not, I can uninstall everything and reinstall from source files, 
>but in that case, what files do I need to save to keep all of the 
>existing messages (which are set to never expire)?

You don't actually need to uninstall per se -- you can (with
judicious use of ./configure options to put all of the files in
the same strange places that the RPM does) just `make update`
over the existing install.  But anyway, the above should be
easier.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: INN over SSL - RPM installation
#68139
Author: Derek Scollon
Date: Mon, 16 Feb 2004 19:20
53 lines
2966 bytes
Jeffrey M. Vinocur wrote:

> In article <40311236$0$4103$5a6aecb4@news.aaisp.net.uk>,
> Derek Scollon  <dscollon@scotwebsolutions.com> wrote:
> 
>>I'd now like to configure it to communicate over 
>>SSL, but having installed it as a binary, there is no option to "make 
>>cert" as advised in the man pages.
> 
> 
> Just since you're here, what version is this?  (If it's 2.4.0,
> you need to upgrade to 2.4.1 for security reasons.)
> 

I think it's 2.4.0, so I'll download the new one.

> 
> 
>>1. Is there an alternative way to make the certificate?
> 
> 
> Sure, if you look in the Makefile you'll see that `make cert`
> just runs these four commands:
> 
>         $(SSLBIN)/openssl req -new -x509 -nodes \
>             -out $(PATHLIB)/cert.pem -days 366 \
>             -keyout $(PATHLIB)/cert.pem
>         chown $(NEWSUSER) $(PATHLIB)/cert.pem
>         chgrp $(NEWSGROUP) $(PATHLIB)/cert.pem
>         chmod 600 $(PATHLIB)/cert.pem
> 
> So $SSLBIN is the path to `openssl` on your system (if needed),
> $PATHLIB is ~news/lib, and $NEWSUSER and $NEWSGROUP are both
> "news" unless you customized them for your system.
> 
> 

This is exactly what I needed to know, thanks. The binary RPM doesn't 
have the make file in it.

> 
>>3. If not, I can uninstall everything and reinstall from source files, 
>>but in that case, what files do I need to save to keep all of the 
>>existing messages (which are set to never expire)?
> 
> 
> You don't actually need to uninstall per se -- you can (with
> judicious use of ./configure options to put all of the files in
> the same strange places that the RPM does) just `make update`
> over the existing install.  But anyway, the above should be
> easier.
> 
Thanks for your help.
Re: INN over SSL - RPM installation
#68141
Author: Geoff Brozny
Date: Mon, 16 Feb 2004 20:35
14 lines
1578 bytes
"Derek Scollon" <dscollon@scotwebsolutions.com> wrote in message
news:403117f6$0$4105$5a6aecb4@news.aaisp.net.uk...
>
> I think it's 2.4.0, so I'll download the new one.
>


RH has yet to package any 2.4.x versions of INN, so if your using came on
the CD, it will be 2.3.x (rh9 came with 2.3.4, Fedora has 2.3.5)

geoff

RPM installation - more questions
#68151
Author: Derek Scollon
Date: Tue, 17 Feb 2004 21:40
23 lines
2346 bytes
Jeffrey M. Vinocur wrote:
>>1. Is there an alternative way to make the certificate?
> 
> 
> Sure, if you look in the Makefile you'll see that `make cert`
> just runs these four commands:
> 
>         $(SSLBIN)/openssl req -new -x509 -nodes \
>             -out $(PATHLIB)/cert.pem -days 366 \
>             -keyout $(PATHLIB)/cert.pem
>         chown $(NEWSUSER) $(PATHLIB)/cert.pem
>         chgrp $(NEWSGROUP) $(PATHLIB)/cert.pem
>         chmod 600 $(PATHLIB)/cert.pem
> 
> So $SSLBIN is the path to `openssl` on your system (if needed),
> $PATHLIB is ~news/lib, and $NEWSUSER and $NEWSGROUP are both
> "news" unless you customized them for your system.
> 
> 
I've now made the certificate as above and edited sasl.conf to point to 
its location. After restarting INN, I can still connect to the server 
without encryption on port 119 but can't get a response on 433. Is there 
any way to tell whether the RPM has installed INN with SSL support?
Re: RPM installation - more questions
#68152
Author: Russ Allbery
Date: Tue, 17 Feb 2004 22:05
17 lines
2007 bytes
Derek Scollon <dscollon@scotwebsolutions.com> writes:

> I've now made the certificate as above and edited sasl.conf to point to
> its location. After restarting INN, I can still connect to the server
> without encryption on port 119 but can't get a response on 433. Is there
> any way to tell whether the RPM has installed INN with SSL support?

ldd on nnrpd should show that it is linked with the OpenSSL libraries.

Note that innd doesn't listen on port 433, so in order to use nnrpd with
SSL support, you have to set up something that listens on port 433.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: RPM installation - more questions
#68153
Author: Derek Scollon
Date: Wed, 18 Feb 2004 00:21
20 lines
2248 bytes
Russ Allbery wrote:
> Derek Scollon <dscollon@scotwebsolutions.com> writes:
> 
> 
>>I've now made the certificate as above and edited sasl.conf to point to
>>its location. After restarting INN, I can still connect to the server
>>without encryption on port 119 but can't get a response on 433. Is there
>>any way to tell whether the RPM has installed INN with SSL support?
> 
> 
> ldd on nnrpd should show that it is linked with the OpenSSL libraries.
> 
> Note that innd doesn't listen on port 433, so in order to use nnrpd with
> SSL support, you have to set up something that listens on port 433.
> 
OK, not linked. So, next question before I plunge in is...

If I download the latest source distrobution and run ./configure to put 
all of the directories in the same place as now (as Jeffrey advised 
above), will I then be able to 'make update' to add SSL support?
Re: RPM installation - more questions
#68154
Author: Russ Allbery
Date: Wed, 18 Feb 2004 00:27
17 lines
2068 bytes
Derek Scollon <dscollon@scotwebsolutions.com> writes:

> OK, not linked. So, next question before I plunge in is...

> If I download the latest source distrobution and run ./configure to put
> all of the directories in the same place as now (as Jeffrey advised
> above), will I then be able to 'make update' to add SSL support?

You need to use --with-openssl in order to request OpenSSL support.
Otherwise, yes.  Note, however, that it may be difficult to configure INN
to use the same directories as Red Hat's built RPMs.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: RPM installation - more questions
#68155
Author: David Canzi
Date: Wed, 18 Feb 2004 02:46
19 lines
2155 bytes
In article <40328a37$0$4105$5a6aecb4@news.aaisp.net.uk>,
Derek Scollon  <dscollon@scotwebsolutions.com> wrote:
>I've now made the certificate as above and edited sasl.conf to point to 
>its location. After restarting INN, I can still connect to the server 
>without encryption on port 119 but can't get a response on 433. Is there 
>any way to tell whether the RPM has installed INN with SSL support?

Try running "nnrpd -D -S" as root.  On my workstation, where I do
experiments before trying them on our news server, this opens port 563,
not 433.  563 is also the port the several browsers I've tried used when
I configured them to read news over a secure connection.

This experience is based on inn-2.4.1 compiled from scratch.  If your
nnrpd is not compiled with SSL support, it will probably complain about
the -S option.

-- 
David Canzi			Let go easily of your anger and hatred...
				but hold on to distrust.
Re: INN over SSL - RPM installation
#68192
Author: Steve
Date: Fri, 20 Feb 2004 19:01
25 lines
2124 bytes
Geoff Brozny wrote:

> 
> "Derek Scollon" <dscollon@scotwebsolutions.com> wrote in message
> news:403117f6$0$4105$5a6aecb4@news.aaisp.net.uk...
>>
>> I think it's 2.4.0, so I'll download the new one.
>>
> 
> 
> RH has yet to package any 2.4.x versions of INN, so if your using
> came on the CD, it will be 2.3.x (rh9 came with 2.3.4, Fedora has
> 2.3.5) 

I tried for some time to build an effective tls/ssl INN service using 
the RPM supplied with RH8, in the end I gave up and built it from  
source.  IIRC, I also had issues with the RH8 openssl and there is 
also a Perl bug that causes issues with Regex matching from external 
files which breaks innreport.

All in all, if you want to run a stable INN service on Redhat, I'd 
recommend going straight to Fedora Core 1 (or Enterprise).  Don't 
install the RPM for INN, but use the latest source instead.  The one 
issue I'm aware of on Fedora is that you need to create a symlink in 
/usr/include that points to com_err.h before is will compile.
Re: INN over SSL - RPM installation
#68194
Author: Derek Scollon
Date: Fri, 20 Feb 2004 19:52
33 lines
2723 bytes
Steve wrote:

> Geoff Brozny wrote:
> 
> 
>>"Derek Scollon" <dscollon@scotwebsolutions.com> wrote in message
>>news:403117f6$0$4105$5a6aecb4@news.aaisp.net.uk...
>>
>>>I think it's 2.4.0, so I'll download the new one.
>>>
>>
>>
>>RH has yet to package any 2.4.x versions of INN, so if your using
>>came on the CD, it will be 2.3.x (rh9 came with 2.3.4, Fedora has
>>2.3.5) 
> 
> 
> I tried for some time to build an effective tls/ssl INN service using 
> the RPM supplied with RH8, in the end I gave up and built it from  
> source.  IIRC, I also had issues with the RH8 openssl and there is 
> also a Perl bug that causes issues with Regex matching from external 
> files which breaks innreport.
> 
> All in all, if you want to run a stable INN service on Redhat, I'd 
> recommend going straight to Fedora Core 1 (or Enterprise).  Don't 
> install the RPM for INN, but use the latest source instead.  The one 
> issue I'm aware of on Fedora is that you need to create a symlink in 
> /usr/include that points to com_err.h before is will compile.

Thanks for the advice. I'm considering moving this service onto another 
machine now, an it might not be a RedHat one at all. It's important for 
us to have the links to INN encrypted and it seems to be very awkward 
with RPMs from what I've seen here.
Re: INN over SSL - RPM installation
#68195
Author: Jeffrey M. Vinocur
Date: Fri, 20 Feb 2004 20:16
16 lines
1822 bytes
In article <40366598$0$4101$5a6aecb4@news.aaisp.net.uk>,
Derek Scollon  <dscollon@scotwebsolutions.com> wrote:
>
>Thanks for the advice. I'm considering moving this service onto another 
>machine now, an it might not be a RedHat one at all. It's important for 
>us to have the links to INN encrypted and it seems to be very awkward 
>with RPMs from what I've seen here.

For the record, there's no problem compiling INN from source on
Redhat, SSL support and all.  It's just the prepackaged RPMs that
are so strange.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: INN over SSL - RPM installation
#68196
Author: Geoff Brozny
Date: Fri, 20 Feb 2004 21:03
34 lines
2886 bytes
"Steve" <steve@nospam-goofer.co.uk> wrote in message
news:c15liq$q4p$1@bananasplit.info...
>
> I tried for some time to build an effective tls/ssl INN service using
> the RPM supplied with RH8, in the end I gave up and built it from
> source.  IIRC, I also had issues with the RH8 openssl and there is
> also a Perl bug that causes issues with Regex matching from external
> files which breaks innreport.

I also had simular issues with the RH9 RPM, including some very strange
behavior, recently I noticed that INN stopped running during expire, so when
expire finished I kicked INN back on, it would run fine until an incoming
feed came in, then it would shutdown, and all the logs showed was all the
processes exiting, as if someone was doing service innd stop, so after
trying to to troubleshoot that for a while I just decided to upgrade to
2.4.1, and was unable to get all the paths correct so I just started over
from scratch.

>
> All in all, if you want to run a stable INN service on Redhat, I'd
> recommend going straight to Fedora Core 1 (or Enterprise).  Don't
> install the RPM for INN, but use the latest source instead.  The one
> issue I'm aware of on Fedora is that you need to create a symlink in
> /usr/include that points to com_err.h before is will compile.

Exactly what I had to do on my new box, my main feed box is running Fedora
Core 1, it's been running for a few weeks now, have not had a single issue
with it.. I'll never use the rpm again, as someone must of been drinking
when they built it...

geoff

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads