Thread View: news.software.nntp
22 messages
22 total messages
Started by Jochen Gensch
Thu, 11 Dec 2003 20:03
inn 2.4 & ssl connections
Author: Jochen Gensch
Date: Thu, 11 Dec 2003 20:03
Date: Thu, 11 Dec 2003 20:03
38 lines
2286 bytes
2286 bytes
Hi!
I'm trying to set up an easy config, so that everyone needs to use ssl
to connect to my news server plus a username/password. First I tried it
without ssl, which was working properly. Now witl ssl...however it just
rejects everbody without giving me any kind of log message.
Here is my sasl.conf
---
tls_ca_path: /usr/local/news/lib
tls_cert_file: /usr/local/news/lib/cert.pem
tls_key_file: /usr/local/news/lib/cert.pem
---
and here is the readers.conf
---
auth alle {
auth: "ckpasswd -f /usr/local/etc/inn/nnrpd-passwd"
require_ssl: true
}
access alle {
read: *,!junk,!control,!control.*
post: *,!junk,!control,!control.*
}
---
I created a cert file into the path mentioned above and chown'ed it.
If I do a "telnet host 119" it says "You have no permission to talk"
But if try to connect by using a newsreader with ssl support, it says just
nothing.
Damn it.... :-(
Any ideas?
Best regards, Jochen
Re: inn 2.4 & ssl connections
Author: Jeffrey M. Vinocur
Date: Thu, 11 Dec 2003 20:37
Date: Thu, 11 Dec 2003 20:37
41 lines
2284 bytes
2284 bytes
In article <braij1$17l4$1@redenix.uni-muenster.de>,
Jochen Gensch <incmc@mail.com> wrote:
>
>I'm trying to set up an easy config, so that everyone needs to use ssl
>to connect to my news server plus a username/password. First I tried it
>without ssl, which was working properly. Now witl ssl...however it just
>rejects everbody without giving me any kind of log message.
Well, you ought to get some sort of log message.
> read: *,!junk,!control,!control.*
> post: *,!junk,!control,!control.*
(Easier just to do "newsgroups:" instead of these two lines.)
>I created a cert file into the path mentioned above and chown'ed it.
>If I do a "telnet host 119" it says "You have no permission to talk"
If you comment out the require_ssl: line, does it work?
If so, that's an interesting side effect of the way require_ssl
is implemented, and you can probably get around it by adding this
above the existing auth block:
auth "insecure" {
default: <insecure>
}
And this below the existing access block:
access "none" {
users: <insecure>
newsgroups: !*
}
--
Jeffrey M. Vinocur
jeff@litech.org
Re: inn 2.4 & ssl connections
Author: Jochen Gensch
Date: Fri, 12 Dec 2003 01:54
Date: Fri, 12 Dec 2003 01:54
38 lines
2378 bytes
2378 bytes
Jeffrey M. Vinocur wrote:
> Well, you ought to get some sort of log message.
No, I don't. in log/news/errlog I do not find any information regarding this
problem, nor in my syslog ouput :-(
> If you comment out the require_ssl: line, does it work?
Yes, perfectly.
> If so, that's an interesting side effect of the way require_ssl
> is implemented, and you can probably get around it by adding this
> above the existing auth block:
>
> auth "insecure" {
> default: <insecure>
> }
>
> And this below the existing access block:
>
> access "none" {
> users: <insecure>
> newsgroups: !*
> }
No, if I try to connect with ssl and without authentification, he says there
are no newsgroups, which is corret according your extra options.
But if you try to connect by ssl... same problem, and no logs. I also added
the entries mentioned in inn.conf to get err.crit etc, but there's nothing.
BTW: Regarding the mailing-list, sorry. I just thought there might be people
who
read the mailing-list but not this newsgroup. No offense :-)
Regards, Jochen
Re: inn 2.4 & ssl connections
Author: Jochen Gensch
Date: Fri, 12 Dec 2003 11:30
Date: Fri, 12 Dec 2003 11:30
47 lines
2275 bytes
2275 bytes
Tried the following configs as well:
---
auth "insecure" {
default: <insecure>
}
auth alle {
#auth: "ckpasswd -f /usr/local/etc/inn/nnrpd-passwd"
require_ssl: true
}
access alle {
read: *,!junk,!control,!control.*
post: *,!misc.bookmarks.old,!junk,!control,!control.*
}
access "none" {
users: <insecure>
newsgroups: !*
}
---
-> Does not work
---
auth alle {
#auth: "ckpasswd -f /usr/local/etc/inn/nnrpd-passwd"
require_ssl: true
}
access alle {
read: *,!junk,!control,!control.*
post: *,!misc.bookmarks.old,!junk,!control,!control.*
}
---
Does not work either. My newsreaderprogramm tells me, the TCP/IP connction
was
closed by the server.
Seems as if the ssl connect is not working. But why don't I get some logfile
output?
I've seen people mentioning err.crit etc, but I don't have these files...
As I said it works perfectly without ssl.
Regards, Jochen
Re: inn 2.4 & ssl connections
Author: Jochen Gensch
Date: Fri, 12 Dec 2003 15:12
Date: Fri, 12 Dec 2003 15:12
15 lines
1799 bytes
1799 bytes
On Fri, 12 Dec 2003 12:30:48 +0100 "Jochen Gensch" <incmc@mail.com> wrote: > Seems as if the ssl connect is not working. Well I tried to access the news by another programm, this one give me the following message: Sylpheed-WARNING **: SSL connect failed (error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol) So something really seem to be wrong with my certificate. Regards, Jochen
Re: inn 2.4 & ssl connections
Author: Jeffrey M. Vinocur
Date: Fri, 12 Dec 2003 15:41
Date: Fri, 12 Dec 2003 15:41
16 lines
1734 bytes
1734 bytes
In article <20031212161239.65b4aab9.incmc@flashmail.com>, Jochen Gensch <incmc@flashmail.com> wrote: > >Sylpheed-WARNING **: SSL connect failed (error:140770FC:SSL >routines:SSL23_GET_SERVER_HELLO:unknown protocol) Oh! Are you trying to speak SSL straight at port 119, with a client that doesn't know about STARTTLS? Those clients are expecting to talk to an `nnrpd -S` running on port 563. -- Jeffrey M. Vinocur jeff@litech.org
Re: inn 2.4 & ssl connections
Author: Jochen Gensch
Date: Fri, 12 Dec 2003 16:15
Date: Fri, 12 Dec 2003 16:15
22 lines
1985 bytes
1985 bytes
Jeffrey M. Vinocur wrote: > Are you trying to speak SSL straight at port 119, Yes, that's what I did. > with a client that doesn't know about STARTTLS? I don't know if these clients don't know about STARTTLS (I even don't know what that is) I used, Sylpheed, Mozilla Thunderbird and even Outlook Express :-) > Those clients are expecting to > talk to an `nnrpd -S` running on port 563. But however there is only an open port port at 119. Does that mean I have to run nnrpd in standalone mode on a different port (563) and innd on 119? Regards, Jochen
Re: inn 2.4 & ssl connections
Author: Jochen Gensch
Date: Fri, 12 Dec 2003 16:26
Date: Fri, 12 Dec 2003 16:26
9 lines
1727 bytes
1727 bytes
> Jeffrey M. Vinocur wrote: > >> Are you trying to speak SSL straight at port 119, by the way, the reader programs suggested port 563, but I changed it to 119 but also tried to 563 in their settings.
Re: inn 2.4 & ssl connections
Author: Jeffrey M. Vinocur
Date: Fri, 12 Dec 2003 17:06
Date: Fri, 12 Dec 2003 17:06
28 lines
2078 bytes
2078 bytes
In article <brcpj6$1dgq$1@redenix.uni-muenster.de>, Jochen Gensch <incmc@mail.com> wrote: >Jeffrey M. Vinocur wrote: > >> with a client that doesn't know about STARTTLS? > >I don't know if these clients don't know about STARTTLS >(I even don't know what that is) I used, Sylpheed, >Mozilla Thunderbird and even Outlook Express :-) I don't know much about clients, but I don't think many do STARTTLS. >> Those clients are expecting to >> talk to an `nnrpd -S` running on port 563. > >But however there is only an open port port at 119. >Does that mean I have to run nnrpd in standalone mode >on a different port (563) and innd on 119? Yes. Or you can use inetd/xinetd to listen on 563, and have it launch nnrpd (instead of using nnrpd in daemon mode). -- Jeffrey M. Vinocur jeff@litech.org
Re: inn 2.4 & ssl connections
Author: Jochen Gensch
Date: Fri, 12 Dec 2003 17:31
Date: Fri, 12 Dec 2003 17:31
21 lines
1967 bytes
1967 bytes
Jeffrey M. Vinocur wrote: >> But however there is only an open port port at 119. >> Does that mean I have to run nnrpd in standalone mode >> on a different port (563) and innd on 119? If I try to start nnrpd (as root), I get the follwing message: error initializing TLS: [CA_file: ] [CA_path: ] [cert_file: /usr/local/news/lib/cert.pem] [key_file: /usr/local/news/lib/cert.pem] My sasl.conf: ---- tls_cert_file: /usr/local/news/lib/cert.pem tls_key_file: /usr/local/news/lib/cert.pem ---- Regards, Jochen
Re: inn 2.4 & ssl connections
Author: Steve
Date: Fri, 12 Dec 2003 17:31
Date: Fri, 12 Dec 2003 17:31
13 lines
1481 bytes
1481 bytes
Jeffrey M. Vinocur wrote: > I don't know much about clients, but I don't think many do > STARTTLS. Very few indeed in my experience. The OP might find this page useful: http://www.bananasplit.info/stunnel.html I wrote it to help people connect to my INN service using STunnel. It's a little specific to that service, but should provide some guidance.
Re: inn 2.4 & ssl connections
Author: Jeffrey M. Vinocur
Date: Fri, 12 Dec 2003 17:34
Date: Fri, 12 Dec 2003 17:34
14 lines
1721 bytes
1721 bytes
In article <brcu2b$19uu$1@redenix.uni-muenster.de>, Jochen Gensch <incmc@mail.com> wrote: > >If I try to start nnrpd (as root), I get the follwing message: > >error initializing TLS: [CA_file: ] [CA_path: ] [cert_file: >/usr/local/news/lib/cert.pem] [key_file: /usr/local/news/lib/cert.pem] What are the permissions/ownership of that file? -- Jeffrey M. Vinocur jeff@litech.org
Re: inn 2.4 & ssl connections
Author: Jochen Gensch
Date: Fri, 12 Dec 2003 22:17
Date: Fri, 12 Dec 2003 22:17
10 lines
1530 bytes
1530 bytes
Jeffrey M. Vinocur wrote: > What are the permissions/ownership of that file? uid/gid: news did a chmod 640 Regards, Jochen
Re: inn 2.4 & ssl connections
Author: Jochen Gensch
Date: Fri, 12 Dec 2003 22:18
Date: Fri, 12 Dec 2003 22:18
15 lines
1851 bytes
1851 bytes
Steve wrote: > The OP might find this page useful: > http://www.bananasplit.info/stunnel.html > > I wrote it to help people connect to my INN service using STunnel. > It's a little specific to that service, but should provide some > guidance. Thanks, I already thought about stunnel as a option, but it should be possibile to get this done by inn itself... (hopefully) Regards, Jochen
Re: inn 2.4 & ssl connections
Author: Jochen Gensch
Date: Fri, 12 Dec 2003 22:34
Date: Fri, 12 Dec 2003 22:34
4 lines
1496 bytes
1496 bytes
Maybe it doesn't like it if the private and public key are both in one file instead of two?
Re: inn 2.4 & ssl connections
Author: Jeffrey M. Vinocur
Date: Fri, 12 Dec 2003 22:36
Date: Fri, 12 Dec 2003 22:36
16 lines
1479 bytes
1479 bytes
In article <brdeq1$s6q$1@redenix.uni-muenster.de>, Jochen Gensch <incmc@mail.com> wrote: >Jeffrey M. Vinocur wrote: > >> What are the permissions/ownership of that file? > >uid/gid: news >did a chmod 640 Hmm. Try mode 600, because other than that I have no idea. -- Jeffrey M. Vinocur jeff@litech.org
Re: inn 2.4 & ssl connections
Author: Jeffrey M. Vinocur
Date: Fri, 12 Dec 2003 22:38
Date: Fri, 12 Dec 2003 22:38
15 lines
1731 bytes
1731 bytes
In article <brdfph$196a$1@redenix.uni-muenster.de>, Jochen Gensch <incmc@mail.com> wrote: >Maybe it doesn't like it if the private and public key are both in one file >instead of two? Did you generate by using `make cert` (or with a command like the one in the Makefile) or in some other way? I don't particularly know how the openssl stuff is supposed to work, except that it does if you follow the directions. -- Jeffrey M. Vinocur jeff@litech.org
Re: inn 2.4 & ssl connections
Author: Jochen Gensch
Date: Fri, 12 Dec 2003 23:28
Date: Fri, 12 Dec 2003 23:28
19 lines
2024 bytes
2024 bytes
Jeffrey M. Vinocur wrote: > Did you generate by using `make cert` (or with a command like the > one in the Makefile) or in some other way? openssl req -new -x509 -nodes -out /usr/local/news/lib/cert.pem -days 1000 -\ keyout /usr/local/news/lib/cert.pem > I don't particularly know how the openssl stuff is supposed to > work, except that it does if you follow the directions. You mean man sasl.conf? What do I have to do? I just need to compile in the option --with-openssl.... maybe something went wrong with that. Is there a way to check whether this option has been compile in properly? Regards, Jochen
Re: inn 2.4 & ssl connections
Author: Jochen Gensch
Date: Fri, 12 Dec 2003 23:34
Date: Fri, 12 Dec 2003 23:34
10 lines
1658 bytes
1658 bytes
Jeffrey M. Vinocur wrote: > I don't particularly know how the openssl stuff is supposed to > work, except that it does if you follow the directions Maybe that helps, guess you know it: http://lists.litech.org/pipermail/inn-workers/2003q4/002388.html
Re: inn 2.4 & ssl connections
Author: Steve
Date: Fri, 12 Dec 2003 23:40
Date: Fri, 12 Dec 2003 23:40
8 lines
1519 bytes
1519 bytes
Jochen Gensch wrote: > Thanks, I already thought about stunnel as a option, but it should be > possibile to get this done by inn itself... (hopefully) It's certainly possible to get the server side done by inn, but you need an ssl capable client. The webpage I pointed you to relates to the configuration of the client side.
Re: inn 2.4 & ssl connections
Author: Jeffrey M. Vinocur
Date: Sat, 13 Dec 2003 05:29
Date: Sat, 13 Dec 2003 05:29
33 lines
2245 bytes
2245 bytes
In article <brdiup$tl2$1@redenix.uni-muenster.de>, Jochen Gensch <incmc@mail.com> wrote: >Jeffrey M. Vinocur wrote: > >> Did you generate by using `make cert` (or with a command like the >> one in the Makefile) or in some other way? > >openssl req -new -x509 -nodes -out /usr/local/news/lib/cert.pem -days >1000 -\ keyout /usr/local/news/lib/cert.pem Huh, looks fine (I assume the mid-line \ is a wordwrap artifact). >> I don't particularly know how the openssl stuff is supposed to >> work, except that it does if you follow the directions. > >You mean man sasl.conf? What do I have to do? >I just need to compile in the option --with-openssl.... Just what's in INSTALL (compiling in SSL support and running `make cert`). I've always had it "just work" after doing those two things. >maybe something went wrong with that. Is there a way to check whether >this option has been compile in properly? You've got log messages from SSL, so it's been compiled in. -- Jeffrey M. Vinocur jeff@litech.org
Re: inn 2.4 & ssl connections
Author: Jochen Gensch
Date: Sat, 13 Dec 2003 17:34
Date: Sat, 13 Dec 2003 17:34
6 lines
1544 bytes
1544 bytes
I'll set up another inn on another server with a small config to see if it is a problem of the first server. But I don't think so... 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