🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Jochen Gensch Mon, 29 Mar 2004 14:29
Problem with ssl initialization again.
#68842
Author: Jochen Gensch
Date: Mon, 29 Mar 2004 14:29
46 lines
2345 bytes
Hi!

SSL has been working fine the last months. However I cannot get it 
running on the new server. Nnrpd complains about ownership / permissions 
  of the certificate. But the settings are correct.
Here's the message:

---
Mar 29 14:20:26 ms nnrpd[808]: bad ownership or permissions on private 
key '/usr/local/news/lib/cert.pem': private key must be mode 600 and 
owned by news
Mar 29 14:20:26 ms nnrpd[808]: error initializing TLS: [CA_file: ] 
[CA_path: /usr/local/news/lib/cert.pem] [cert_file: 
/usr/local/news/lib/cert.pem] [key_file: /usr/local/news/lib/cert.pem]
---

If I lookup the permissions, the system says:

---
/usr/local/news/lib:ls -l
total 440
-rw-------  1 news  news    2042 Mar 29 14:18 cert.pem
-rw-r-----  1 news  news   69148 Jan  7 22:47 innreport_inn.pm
-rw-r--r--  1 news  news    2605 Mar 29 12:59 innshellvars
-rw-r--r--  1 news  news    3087 Mar 29 12:59 innshellvars.pl
-rw-r--r--  1 news  news    3541 Mar 29 12:59 innshellvars.tcl
-r-xr-xr-x  1 news  news  150306 Mar 29 12:59 libinn.a
-r-xr-xr-x  1 news  news   21416 Mar 29 13:00 libinnhist.a
-r-xr-xr-x  1 news  news  191914 Mar 29 13:00 libstorage.a
---

And sasl.conf looks as follows:

---
/usr/local/news/lib:cat ../etc/sasl.conf
tls_cert_file:  /usr/local/news/lib/cert.pem
tls_key_file: /usr/local/news/lib/cert.pem
tls_ca_path:  /usr/local/news/lib/cert.pem

---

Any hints?


Jochen
Re: Problem with ssl initialization again.
#68846
Author: Russ Allbery
Date: Mon, 29 Mar 2004 17:35
26 lines
2055 bytes
Jochen Gensch <nomail@mail.org> writes:

> SSL has been working fine the last months. However I cannot get it
> running on the new server. Nnrpd complains about ownership / permissions
> of the certificate. But the settings are correct.

> ---
> Mar 29 14:20:26 ms nnrpd[808]: bad ownership or permissions on private key
> '/usr/local/news/lib/cert.pem': private key must be mode 600 and owned by
> news

That error message is still wrong.  *sigh*.  I'll try to add some more
details to it.  It actually checks to make sure that cert.pem is owned by
the user nnrpd is running as.  I'm guessing you're running nnrpd as root
for some reason.

That's going to cause other problems too.  Make sure that nnrpd either
runs in daemon mode (in which case it will drop permissions by itself) or
runs as news.

-- 
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: Problem with ssl initialization again.
#68850
Author: Jochen Gensch
Date: Mon, 29 Mar 2004 18:33
17 lines
1528 bytes
Russ Allbery schrieb:

> That's going to cause other problems too.  Make sure that nnrpd either
> runs in daemon mode 

I tried, but as posted in another thread here, this doesn't work, 
because it can't bind, even if it's started by root.


(in which case it will drop permissions by itself) or
> runs as news.

I cannot runs it as news, because I think it cannot bin to the normal 
ssl port 563 if it is not started by root.

Jochen
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