🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #251611

accessing TLS/SSL services, including snews://

#251611
From: Ivan Shmakov
Date: Tue, 18 Sep 2012 10:39
77 lines
4079 bytes
>>>>> John F Morse <john@example.invalid> writes:

	[Cross-posting to news:comp.security.misc and
	news:comp.protocols.misc, just in case.  Please omit the latter
	when replying, unless the intent is to discuss the Telnet
	protocol.]

[...]

 > The OP simply asked "how to post from the command line" and I
 > provided one solution: telnet.

	May I remind you that the Telnet protocol has its own control
	sequences, and may be unsuitable for, e. g., transferring
	arbitrary binary data?  Arguably, a Netcat tool, such as nc6(1),
	or OpenBSD nc(1), would be a better fit.

	(For that reason, the hosts under my control rarely provide the
	telnet(1) client.)

 > You provided another: openssl.

	Let me provide the third: gnutls-cli(1).  Consider, e. g. (line
	wrapping by me), the following session.

$ gnutls-cli -p 563 news.panix.com 
Resolving 'news.panix.com'...
Connecting to '166.84.1.69:563'...
- Certificate type: X.509
 - Got a certificate list of 1 certificates.
 - Certificate[0] info:
  - subject `C=US,ST=NY,L=New_York,
O=PANIX Public Access Networks Usenet News Servers,OU=news,
CN=news.panix.com,EMAIL=staff@panix.com',
 issuer `C=US,ST=NY,L=New_York,
O=PANIX Public Access Networks Usenet News Servers,OU=news,
CN=PANIX Public Access Networks Usenet News Servers CA,
EMAIL=staff@panix.com',

	[... Arguably, they should use a certificate signed by a
	recognized trusted party, such as, e. g., https://cacert.org/.]

 RSA key 2048 bits, signed using RSA-SHA,
 activated `2012-01-20 19:20:16 UTC',
 expires `2022-01-17 19:20:16 UTC',
 SHA-1 fingerprint `e588294d02985ea671e2c2a7e84f23c524b755bc'
- The hostname in the certificate matches 'news.panix.com'.
- Peer's certificate issuer is unknown
- Peer's certificate is NOT trusted
- Version: TLS1.0
- Key Exchange: RSA
- Cipher: AES-128-CBC
- MAC: SHA1
- Compression: NULL
- Handshake was completed

- Simple Client Mode:

200 reader1.panix.com InterNetNews NNRP server INN 2.3.3 ready (posting ok).
QUIT
205 .
- Peer has closed the GNUTLS connection
$ 

 > I realize the Subject includes "snews" and telnet is not usable for
 > SSL/TLS without a helper, like Stunnel.

	I still don't get how using two TCP connections (Netcat or
	Telnet to Stunnel, and Stunnel to TLS/SSL server) could be
	better than using a single one (openssl or gnutls-cli to TLS/SSL
	server.)

[...]

-- 
FSF associate member #7257
Technical Details
Message-ID: <861uhz7gz3.fsf_-_@gray.siamics.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.protocols.misc.mbox.zip!q11ni3585825wiw.1!nntp.google.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!94.232.116.13.MISMATCH!feed.xsnews.nl!border-3.ams.xsnews.nl!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsreader4.netcologne.de!news.netcologne.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail
References: <6d04a9ecf59311767822dcc625427097@breaka.net> <k2tf83$1t1$1@n102.xanadu-bbs.net> <eli$1209131701@qz.little-neck.ny.us> <k2u65t$7sp$1@n102.xanadu-bbs.net> <eli$1209141522@qz.little-neck.ny.us> <k32pct$db9$1@n102.xanadu-bbs.net>

Show Full Headers
Complete Article Headers
Message-ID: <861uhz7gz3.fsf_-_@gray.siamics.net>
Subject: accessing TLS/SSL services, including snews://
Date: Tue, 18 Sep 2012 17:39:12 +0700
From: Ivan Shmakov <oneingray@gmail.com>
References: <6d04a9ecf59311767822dcc625427097@breaka.net> <k2tf83$1t1$1@n102.xanadu-bbs.net> <eli$1209131701@qz.little-neck.ny.us> <k2u65t$7sp$1@n102.xanadu-bbs.net> <eli$1209141522@qz.little-neck.ny.us> <k32pct$db9$1@n102.xanadu-bbs.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.protocols.misc.mbox.zip!q11ni3585825wiw.1!nntp.google.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!94.232.116.13.MISMATCH!feed.xsnews.nl!border-3.ams.xsnews.nl!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsreader4.netcologne.de!news.netcologne.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail
Received: by 10.180.106.199 with SMTP id gw7mr78530wib.0.1348190744632;
Newsgroups: news.software.readers,comp.security.misc,comp.protocols.misc
Followup-To: news.software.readers,comp.security.misc
Organization: Aioe.org NNTP Server
Lines: 76
NNTP-Posting-Host: FtDGZaUx6k7Bzdiv4MgYAg.user.speranza.aioe.org
Mime-Version: 1.0
X-Complaints-To: abuse@aioe.org
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)
X-Notice: Filtered by postfilter v. 0.8.2
Cancel-Lock: sha1:ER76GRVg9sYRsrFRNMO2iVapem0=
Content-Type: text/plain; charset=us-ascii