From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: sending mail using tls using Emacs under Windows Date: Fri, 27 Mar 2015 22:02:03 +0300 Message-ID: <83twx61cyc.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1427482958 29826 80.91.229.3 (27 Mar 2015 19:02:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Mar 2015 19:02:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 27 20:02:32 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YbZWQ-0007kC-GW for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Mar 2015 20:02:22 +0100 Original-Received: from localhost ([::1]:51373 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbZWP-0006h3-U1 for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Mar 2015 15:02:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45046) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbZWF-0006gw-Oq for help-gnu-emacs@gnu.org; Fri, 27 Mar 2015 15:02:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YbZW9-0007QD-Jr for help-gnu-emacs@gnu.org; Fri, 27 Mar 2015 15:02:11 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:36522) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbZW9-0007Pp-B1 for help-gnu-emacs@gnu.org; Fri, 27 Mar 2015 15:02:05 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NLV00I00WFDVI00@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Fri, 27 Mar 2015 22:02:04 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NLV00IA7WVGSU60@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Fri, 27 Mar 2015 22:02:04 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103403 Archived-At: > From: Will Parsons > Date: 27 Mar 2015 17:40:25 GMT > > Eli Zaretskii wrote: > >> From: Will Parsons > >> Date: 26 Mar 2015 20:57:48 GMT > >> > >> Sending via mail... > >> gnutls.el: (err=[-64] Error while reading file.) boot: (:priority > >> NORMAL :hostname smtp.gmail.com :loglevel 0 :min-prime-bits 256 > >> :trustfiles (/usr/ssl/certs/ca-bundle.crt) :crlfiles nil :keylist nil > >> :verify-flags nil :verify-error nil :callbacks nil) > >> gnutls-negotiate: GnuTLS error: #, -64 > > > > Do you have a certificate bundle in /usr/ssl/certs/ca-bundle.crt? > > Since this is a native Windows Emacs, no such path exists. Then you need to point GnuTLS to the correct file name on your system. > In a separate reply, Sivaram suggested the setting: > > (setq gnutls-trustfiles '("c:/cygwin/usr/ssl/certs/ca-bundle.trust.crt" > "c:/cygwin/usr/ssl/certs/ca-bundle.crt")) > > This works (thank you Sivaram), but of course it works because it > depends on having Cygwin installed. The bundle has nothing to do with Cygwin, you can install it separately. > That's not a problem for me, since I have Cygwin installed anyway, > but I think there must be part of the puzzle missing if one is using > only native Emacs and gnutls. The development version of Emacs instructs GnuTLS to use the certificates stored by Windows, so the separate bundle will no longer be needed with that version.