all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: Network Security Manager merge time?
Date: Wed, 19 Nov 2014 21:06:15 +0100	[thread overview]
Message-ID: <827fyrx8eg.fsf@oracle.com> (raw)
In-Reply-To: m3ppcjge22.fsf@stories.gnus.org

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Robert Pluim <rpluim@gmail.com> writes:
>
>> I don't think I'm using TLS either:
>>
>>  gnus-secondary-select-methods
>>  '(
>>    (nntp "eternal"
>> 	 (nntp-address "news.eternal-september.org")))
>>
>> and my .authinfo entry specifies only nntp.
>
> It will upgrade via STARTTLS to encrypted automatically.
>
>> If I set nsm-security-level to 'low it all works.
>
> Hm.  What does
>
> (gnutls-peer-status 
>   (open-network-stream
>    "nntpd" (get-buffer-create "*nntp*") "news.eternal-september.org" "nntp"
>    :end-of-command "^\\([2345]\\|[.]\\).*\n"
>    :capability-command "HELP\r\n"
>    :success "^3"
>    :starttls-function
>    (lambda (capabilities)
>      (if (not (string-match "STARTTLS" capabilities))
>          nil
>        "STARTTLS\r\n"))))
>
> evaluate to for you?  (On different security levels.)

With low:

(:warnings ((:self-signed "certificate signer was not found (self-signed)") (:invalid "certificate could not be verified")) :certificate (:version 3 :serial-number "0f:79:de" :issuer "O=Root CA,OU=http://www.cacert.org,CN=CA Cert Signing Authority,EMAIL=support@cacert.org" :valid-from "2014-08-31" :valid-to "2015-02-27" :subject "CN=news.eternal-september.org" ...))

With paranoid:

Debugger entered--Lisp error: (wrong-type-argument processp nil)
  gnutls-peer-status(nil)
  eval((gnutls-peer-status (open-network-stream "nntpd" (get-buffer-create "*nntp*") "news.eternal-september.org" "nntp" :end-of-command "^\\([2345]\\|[.]\\).*\n" :capability-command "HELP\n" :success "^3" :starttls-function (function (lambda (capabilities) (if (not (string-match "STARTTLS" capabilities)) nil "STARTTLS\n"))))) nil)
  eval-last-sexp-1(nil)
  eval-last-sexp(nil)
  call-interactively(eval-last-sexp nil nil)
  command-execute(eval-last-sexp)

and *nntp* contains

200 mx02.eternal-september.org InterNetNews NNRP server INN 2.6.0 (20141110 snapshot) ready (posting ok)
100 Legal commands
  ARTICLE [message-ID|number]
  AUTHINFO USER name|PASS password|SASL mechanism [initial-response]|GENERIC program [argument ...]
  BODY [message-ID|number]
  CAPABILITIES [keyword]
  DATE
  GROUP newsgroup
  HDR header [message-ID|range]
  HEAD [message-ID|number]
  HELP
  IHAVE message-ID
  LAST
  LIST [ACTIVE [wildmat]|ACTIVE.TIMES [wildmat]|COUNTS [wildmat]|DISTRIB.PATS|DISTRIBUTIONS|HEADERS [MSGID|RANGE]|MODERATORS|MOTD|NEWSGROUPS [wildmat]|OVERVIEW.FMT|SUBSCRIPTIONS [wildmat]]
  LISTGROUP [newsgroup [range]]
  MODE READER
  NEWGROUPS [yy]yymmdd hhmmss [GMT]
  NEWNEWS wildmat [yy]yymmdd hhmmss [GMT]
  NEXT
  OVER [range]
  POST
  QUIT
  STARTTLS
  STAT [message-ID|number]
  XGTITLE [wildmat]
  XHDR header [message-ID|range]
  XOVER [range]
  XPAT header message-ID|range pattern [pattern ...]
Report problems to <usenet@eternal-september.org>.
.
382 Begin TLS negotiation now
100 Legal commands
  ARTICLE [message-ID|number]
  AUTHINFO USER name|PASS password|SASL mechanism [initial-response]|GENERIC program [argument ...]
  BODY [message-ID|number]
  CAPABILITIES [keyword]
  DATE
  GROUP newsgroup
  HDR header [message-ID|range]
  HEAD [message-ID|number]
  HELP
  IHAVE message-ID
  LAST
  LIST [ACTIVE [wildmat]|ACTIVE.TIMES [wildmat]|COUNTS [wildmat]|DISTRIB.PATS|DISTRIBUTIONS|HEADERS [MSGID|RANGE]|MODERATORS|MOTD|NEWSGROUPS [wildmat]|OVERVIEW.FMT|SUBSCRIPTIONS [wildmat]]
  LISTGROUP [newsgroup [range]]
  MODE READER
  NEWGROUPS [yy]yymmdd hhmmss [GMT]
  NEWNEWS wildmat [yy]yymmdd hhmmss [GMT]
  NEXT
  OVER [range]
  POST
  QUIT
  STARTTLS
  STAT [message-ID|number]
  XGTITLE [wildmat]
  XHDR header [message-ID|range]
  XOVER [range]
  XPAT header message-ID|range pattern [pattern ...]
Report problems to <usenet@eternal-september.org>.
.

Process nntpd<2> deleted




  reply	other threads:[~2014-11-19 20:06 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-19 16:22 Network Security Manager merge time? Lars Magne Ingebrigtsen
2014-11-19 16:40 ` Ted Zlatanov
2014-11-19 16:53   ` Lars Magne Ingebrigtsen
2014-11-19 17:30     ` Ted Zlatanov
2014-11-19 17:59       ` Lars Magne Ingebrigtsen
2014-11-19 18:34         ` Ted Zlatanov
2014-11-19 20:00           ` Ivan Shmakov
2014-11-19 20:25             ` Ted Zlatanov
2014-11-19 21:41           ` Ted Zlatanov
2014-11-21 11:29             ` Lars Magne Ingebrigtsen
2014-11-25 14:20               ` Ted Zlatanov
2014-11-25 16:30                 ` Lars Magne Ingebrigtsen
2014-11-25 16:46                   ` Ted Zlatanov
2014-11-25 17:08                     ` Lars Magne Ingebrigtsen
2014-11-25 18:20                       ` intrusive changes Ivan Shmakov
2014-11-30 13:51                         ` Stefan Monnier
2014-11-30 15:12                           ` Ivan Shmakov
2014-11-30 18:07                             ` Stefan Monnier
2014-12-02 10:03                               ` Ivan Shmakov
2014-12-02 13:50                                 ` Stefan Monnier
2014-11-19 18:22   ` Network Security Manager merge time? Lars Magne Ingebrigtsen
2014-11-19 20:46     ` Eli Zaretskii
2014-11-19 20:54       ` Lars Magne Ingebrigtsen
2014-11-19 20:58         ` Lars Magne Ingebrigtsen
2014-11-19 21:18         ` Eli Zaretskii
2014-11-20  8:42           ` Lars Magne Ingebrigtsen
2014-11-20 16:16             ` Eli Zaretskii
2014-11-19 17:28 ` Robert Pluim
2014-11-19 17:50   ` Lars Magne Ingebrigtsen
2014-11-19 19:51     ` Robert Pluim
2014-11-19 19:56       ` Lars Magne Ingebrigtsen
2014-11-19 20:06         ` Robert Pluim [this message]
2014-11-19 20:20           ` Lars Magne Ingebrigtsen
2014-11-19 20:25             ` Lars Magne Ingebrigtsen
2014-11-19 20:26             ` Robert Pluim
2014-11-19 20:32               ` Lars Magne Ingebrigtsen
2014-11-20  8:00                 ` Robert Pluim
2014-11-20  8:43                   ` Lars Magne Ingebrigtsen
2014-11-20  9:04           ` Robert Pluim
2014-11-20 10:39             ` Lars Magne Ingebrigtsen
2014-11-20 11:34               ` Robert Pluim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=827fyrx8eg.fsf@oracle.com \
    --to=rpluim@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.