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:52:50 +0300 Message-ID: <83h9t61alp.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1427486005 19195 80.91.229.3 (27 Mar 2015 19:53:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Mar 2015 19:53:25 +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:53:14 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 1YbaJb-0000zw-JL for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Mar 2015 20:53:11 +0100 Original-Received: from localhost ([::1]:51666 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbaJa-0006Jc-Od for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Mar 2015 15:53:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41642) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbaJO-0006Fv-PH for help-gnu-emacs@gnu.org; Fri, 27 Mar 2015 15:52:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YbaJJ-0007te-0J for help-gnu-emacs@gnu.org; Fri, 27 Mar 2015 15:52:58 -0400 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:48493) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbaJI-0007si-Kf for help-gnu-emacs@gnu.org; Fri, 27 Mar 2015 15:52:52 -0400 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NLV00400YKN7V00@mtaout29.012.net.il> for help-gnu-emacs@gnu.org; Fri, 27 Mar 2015 22:49:58 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NLV003IEZ3A7Z20@mtaout29.012.net.il> for help-gnu-emacs@gnu.org; Fri, 27 Mar 2015 22:49:58 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.185 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:103405 Archived-At: > From: Will Parsons > Date: 27 Mar 2015 19:37:34 GMT > > Eli Zaretskii wrote: > >> 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. > > Fair enough, but it's not exactly clear what I need to install, or > from where. (If I've missed some documentation describing this, I > apologize.) I don't think you missed something. One place where you can find instructions for how to download and create a bundle is here: http://www.linuxfromscratch.org/blfs/view/svn/postlfs/cacerts.html > > 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. > > So this will be case for the coming 24.5? Unfortunately, no. It will be only available in Emacs 25. Emacs 24.5 is a bug-fix release with no major new features.