unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: emacs-devel@gnu.org
Subject: Re: GnuTLS and certificate verification
Date: Fri, 21 Dec 2012 12:17:25 -0500	[thread overview]
Message-ID: <87623vjpei.fsf@lifelogs.com> (raw)
In-Reply-To: <87sjaw2k5p.fsf@dex.adm.naquadah.org> (Julien Danjou's message of "Thu, 06 Sep 2012 00:13:06 +0200")

On Thu, 06 Sep 2012 00:13:06 +0200 Julien Danjou <julien@danjou.info> wrote: 

JD> I'd like gnutls to check that the server I connect to are trusted. Using
JD> Gnus and smtpmail, currently, the check is disable because
JD> the argument :verify-hostname-error to `gnutls-negotiate' is always nil.
JD> It seems nothing uses it for now.

JD> I wonder if adding a global defcustom would be helpful here. WDYT?

Yes, if the underlying code works.

JD> OTOH, I've tried to set it manually to t, and I added my CA to the know
JD> certificates. gnutls-bin is now happy to connect to my IMAP server and
JD> considers it secure ("Peer's certificate is trusted"). But with
JD> gnutls.c, I keep hitting:

JD>   if (peer_verification & GNUTLS_CERT_SIGNER_NOT_FOUND)
JD>     GNUTLS_LOG2 (1, max_log_level, "certificate signer was not found:",
JD> 		 c_hostname);

JD> Note that the trustfile used seems correct too.

JD> If anybody has a clue, I'd be glad… 

I tested this but not thoroughly with self-signed certs (which it seems
you're using, though I can't be sure from your description).

This specific error could be due to many things; you need to either look
at the GnuTLS context yourself, post a recipe for duplicating the issue
here or in a bug, or ask in the gnutls-devel mailing list with that
recipe.  Either way I will try to help you find the solution.

Ted



  reply	other threads:[~2012-12-21 17:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-05 22:13 GnuTLS and certificate verification Julien Danjou
2012-12-21 17:17 ` Ted Zlatanov [this message]
2012-12-22 14:49   ` Julien Danjou

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87623vjpei.fsf@lifelogs.com \
    --to=tzz@lifelogs.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).