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