Thread View: news.software.nntp
7 messages
7 total messages
Started by Simon Waters
Wed, 13 Feb 2002 12:27
Newbie SSL
Author: Simon Waters
Date: Wed, 13 Feb 2002 12:27
Date: Wed, 13 Feb 2002 12:27
40 lines
2571 bytes
2571 bytes
Okay trying to test NNTP over OpenSSL. Fire up innd 2.3.2 Use stunnel 3.22 to map from 563 to 119. Various commands along the lines of "stunnel -u news -g news -T -d 563 -r localhost:119 -p /..../cert.pem" When I use "telnet localhost 119" I get greeting baaner and "authinfo user username" prompts for password. When I use "openssl s_client -connect localhost:563", I see various tunnel and certificate messages suggesting my self-signed certificate is okay, and encryption is in use. I am greeted by the same banner but "authinfo user username" now gives "500 Syntax error or bad command" Log file shows; Feb 13 12:14:11 linux1 innd: localhost connected 16 streaming allowed Feb 13 12:14:19 linux1 innd: localhost:16 bad_command authinfo user username And other commands are echoed as "bad_command" from innd, so it looks like the encryption/decryption is working more or less. Is there some reason why innd will not work like this? Have I missed something simple. Only nagging doubt on the configuration is the box has openssl 0.9.5a as well as 0.9.6 installed, but all server software (i.e. stunnel) picked up 0.9.6, and switching between 0.9.6 and 0.9.5a openssl doesn't affect the problem seen. Oh and yes newsreaders work with authentication on 119, and don't work on 563, as expected. I tried the native OpenSSL stuff in nnrpd, but there is almost no documentation on calling nnrpd correctly, and that approach didn't get any further.
Re: Newbie SSL
Author: Bernhard Schmidt
Date: Wed, 13 Feb 2002 13:24
Date: Wed, 13 Feb 2002 13:24
17 lines
1600 bytes
1600 bytes
Simon Waters wrote: > When I use "telnet localhost 119" I get greeting baaner and > "authinfo user username" prompts for password. [...] > I am greeted by the same banner but "authinfo user username" now > gives "500 Syntax error or bad command" Have your tried to switch to reader mode with "MODE READER" prior to the authinfo command? Connections from localhost usually first get into innd and are handed over to nnrpd after "MODE READER". -- Bernhard Schmidt Network Operation Center Cybernet AG, Muenchen
Re: Newbie SSL
Author: Simon Waters
Date: Wed, 13 Feb 2002 14:12
Date: Wed, 13 Feb 2002 14:12
20 lines
1881 bytes
1881 bytes
Bernhard Schmidt wrote: > > Simon Waters wrote: > > > When I use "telnet localhost 119" I get greeting baaner and > > "authinfo user username" prompts for password. > [...] > > I am greeted by the same banner but "authinfo user username" now > > gives "500 Syntax error or bad command" > > Have your tried to switch to reader mode with "MODE READER" prior to the > authinfo command? Connections from localhost usually first get into innd > and are handed over to nnrpd after "MODE READER". Yes - "mode reader"/"MODE READER" gives me the same "500 Syntax..." error message. I've also tried some options on calling nnrpd directly, but the docs on nnrpd are a bit light.
Re: Newbie SSL
Author: Simon Waters
Date: Wed, 13 Feb 2002 18:02
Date: Wed, 13 Feb 2002 18:02
29 lines
2033 bytes
2033 bytes
Simon Waters wrote: > > Yes - "mode reader"/"MODE READER" gives me the same "500 > Syntax..." error message. > > I've also tried some options on calling nnrpd directly, but the > docs on nnrpd are a bit light. Upgraded the remaining 0.5.9a stuff - no effect. Tried stunnel on port 25, worked first time Abandoned innd as a bad job, and configured nnrpd with SSL support (Built in). Worked first time, but NN doesn't authenticate with it, maybe it is an iffy certificate? IE5 works but complains about certficate. Still would prefer to use innd if possible. Simon -- Free Software: What good is Open Source without Freedom? Open Source Day 2002/04/27 Exeter University Entry is free (as in free beer, but there isn't any free beer) http://www.dclug.org.uk/ossday/
Re: Newbie SSL
Author: Jeffrey M. Vinocur
Date: Wed, 13 Feb 2002 19:41
Date: Wed, 13 Feb 2002 19:41
40 lines
2247 bytes
2247 bytes
In article <3C6AAA2A.795929E3@wretched.demon.co.uk>, Simon Waters <Simon@wretched.demon.co.uk> wrote: >Simon Waters wrote: >> >> Yes - "mode reader"/"MODE READER" gives me the same "500 >> Syntax..." error message. Does 'help' work? The above is very odd. You do get the welcome banner, right? >> I've also tried some options on calling nnrpd directly, but the >> docs on nnrpd are a bit light. Hmm, I'm not sure what you can't figure out. Can you ask about what confuses you? >Abandoned innd as a bad job, and configured nnrpd with SSL >support (Built in). > >Worked first time, but NN doesn't authenticate with it, maybe it >is an iffy certificate? IE5 works but complains about >certficate. > >Still would prefer to use innd if possible. I don't follow you here. People rarely have innd listening on port 563. The two usual approaches are to use nnrpd -D or to run nnrpd out of inetd/xinetd. I don't know much about certificates. If you open_ssl -connect, does the certificate look fine? -- Jeffrey M. Vinocur jeff@litech.org
Re: Newbie SSL
Author: Simon Waters
Date: Wed, 13 Feb 2002 20:34
Date: Wed, 13 Feb 2002 20:34
69 lines
3749 bytes
3749 bytes
"Jeffrey M. Vinocur" wrote: > > In article <3C6AAA2A.795929E3@wretched.demon.co.uk>, > Simon Waters <Simon@wretched.demon.co.uk> wrote: > >Simon Waters wrote: > >> > >> Yes - "mode reader"/"MODE READER" gives me the same "500 > >> Syntax..." error message. > > Does 'help' work? The above is very odd. You do get the welcome > banner, right? Welcome banner shows fine, but innd spits log error at all and every command as if I'm alking a different language. "Help" is no different. Tried stunnel with Postfix "master" daemon to make sure I was doing it right, worked first time. Conclude innd doesn't work with stunnel for some specific reason, maybe it is to do with spawning nnrpd underneath, maybe it is platform specific (Linux 2.2.19, Redhat 7.0). > >> I've also tried some options on calling nnrpd directly, but the > >> docs on nnrpd are a bit light. > > Hmm, I'm not sure what you can't figure out. Can you ask about > what confuses you? First couple of attempts I was getting no where with nnrpd, I think it was environment issues, i.e. not running as news, trying to bind low ports, trying to use the local Netscape app for debugging (openssl s_client is a must for debugging so I have rediscovered ;). Just newbie stuff to learn I fear. > I don't follow you here. People rarely have innd listening on > port 563. The two usual approaches are to use nnrpd -D or to run > nnrpd out of inetd/xinetd. Just the docs implied that innd would do more if it could be made to work. Anyway nnrpd seems fine. I was testing it with a newsreader that isn't working, so possibly I had it working before and didn't know it. > I don't know much about certificates. If you open_ssl -connect, > does the certificate look fine? Certificate looks fine. Okay - so far I have OE5 (Win32), and NN 4.7 (Win32) working fine. NN 4.76 (Linux) fails to authenticate with a SSL newsserver. I'm using a password based authentication (ckpasswd) for testing. Where Windows produces a "will you accept this certificate" dialogue, NN on Linux just sits and waits. Since the Windows client dialogue starts with saying I've been asked for a certificate and don't have one, perhaps I better try make myself one for NN. Anyway it is back to client issues now, so any good resources on SSL aware clients welcome (Especially lists of what works and what doesn't). Thanks, Simon
Re: Newbie SSL
Author: Jeffrey M. Vinocur
Date: Thu, 14 Feb 2002 23:52
Date: Thu, 14 Feb 2002 23:52
57 lines
2747 bytes
2747 bytes
In article <3C6ACDE8.8CE20DB2@wretched.demon.co.uk>, Simon Waters <Simon@wretched.demon.co.uk> wrote: > >Welcome banner shows fine, but innd spits log error at all and >every command as if I'm alking a different language. "Help" is >no different. That's really freaky. What do the logs show for this? >Conclude innd doesn't work with stunnel for some specific >reason, maybe it is to do with spawning nnrpd underneath, maybe >it is platform specific (Linux 2.2.19, Redhat 7.0). I believe other people use stunnel for this with no problems. I can't imagine why there would be an issue if the connection works fine the other way. >First couple of attempts I was getting no where with nnrpd, I >think it was environment issues, i.e. not running as news, >trying to bind low ports, trying to use the local Netscape app >for debugging (openssl s_client is a must for debugging so I >have rediscovered ;). Just newbie stuff to learn I fear. Ok, if you need help on anything let us know. >Just the docs implied that innd would do more if it could be >made to work. Ah. Yes, you can get more sophisticated connection-limiting through innd. >Anyway nnrpd seems fine. I was testing it with a newsreader that >isn't working, so possibly I had it working before and didn't >know it. Ok. Note that some people prefer spawning nnrpd out of inetd/xinetd to using -D. >Anyway it is back to client issues now, so any good resources on >SSL aware clients welcome (Especially lists of what works and >what doesn't). No idea about this, try asking in news.software.readers. -- Jeffrey M. Vinocur jeff@litech.org
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