help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [h-e-w] GnuTLS in win32


From: Jason Lewis
Subject: Re: [h-e-w] GnuTLS in win32
Date: Fri, 20 Jul 2012 11:32:01 +1000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.23) Gecko/20090812 Lightning/0.9 Thunderbird/2.0.0.23 Mnenhy/0.7.5.0

Jason Lewis wrote:

> However now I get this error:
> 
> Opening connection to 10.0.2.15...
> gnutls.c: [1] (Emacs) allocating credentials
> gnutls.c: [2] (Emacs) allocating x509 credentials
> gnutls.c: [2] (Emacs) using default verification flags
> gnutls.c: [1] (Emacs) setting the trustfile:  /usr/ssl/certs/ca-bundle.crt
> gnutls.c: [2] ASSERT: gnutls_x509.c:1575
> 
> gnutls.el: (err=[-64] Error while reading file.) boot: (:priority NORMAL
> :hostname 10.0.2.15 :loglevel 10 :min-prime-bits 256 :trustfiles
> (/usr/ssl/certs/ca-bundle.crt) :crlfiles nil :keylist nil :verify-flags
> nil :verify-error nil :verify-hostname-error nil :callbacks nil)
> gnutls.c: [2] (Emacs) Deallocating x509 credentials
> Unable to open server nnimap+10.0.2.15 due to: Process *nnimap* not running
> nnimap (10.0.2.15) open error: ''.  Continue? (y or n)  y
> 
> 
> I presume gnutls needs to have some certificate files somewhere?
> gnutls-trustfiles is ("/etc/ssl/certs/ca-certificates.crt"
> "/etc/pki/tls/certs/ca-bundle.crt" "/etc/ssl/ca-bundle.pem"
> "/usr/ssl/certs/ca-bundle.crt")
> 

To answer my own question in case it helps someone in future

Cygwin has cert files, but for some reason the gnutls-trustfiles paths
do not correctly map to the windows path. I'm guessing that in emacs the
paths would work ok because I use cygmount but when the paths get handed
to gnutls, they don't get translated?

anyway, the solution was to set gnuttls-trustfiles to
("C:/cygwin/usr/ssl/certs/ca-bundle.trust.crt"
"C:/cygwin/usr/ssl/certs/ca-bundle.crt")

Jason






reply via email to

[Prev in Thread] Current Thread [Next in Thread]