[OS X Emacs] Aquamacs 3.4 / failed TSL connection to Melpa
Michal Ramsza
michal.ramsza at gmail.com
Fri Aug 3 10:32:50 EDT 2018
Thank you very much.
I've found this post: https://github.com/davidswelt/aquamacs-emacs/issues/133 and tinkered a bit with the problem but then realized that Aquamacs probably changed a library used to make a connection and that maybe I do not have gnutls-cli installed in the first place. I installed it with brew install gnutls-cli, and it just works (except for Marmalade). I will tinker with this a bit more, but it is okay for me now.
> On 2 Aug 2018, at 21:14, Robert Goldman <rpgoldman at sift.info> wrote:
>
>
>> Message: 1
>> Date: Thu, 2 Aug 2018 17:35:53 +0200
>> From: Michal Ramsza <michal.ramsza at gmail.com>
>> To: macosx-emacs at email.esm.psu.edu
>> Subject: Message-ID: <9DDB70A6-AC1C-48CC-83D5-2E0F8E0A14FD at gmail.com>
>> Content-Type: text/plain; charset=utf-8
>>
>> I recently moved to Aquamacs 3.4. I have not change any preference files or anything else related to Aquamacs. Now, when I try to connect to Melpa I get a failure
>>
>> Opening TLS connection to ?melpa.org?...
>> Opening TLS connection with ?gnutls-cli --x509cafile nil -p 443 melpa.org?...failed
>> Opening TLS connection with ?gnutls-cli --x509cafile nil -p 443 melpa.org --protocols ssl3?...failed
>> Opening TLS connection to ?melpa.org?...failed
>> package-install-from-archive: Could not create connection to melpa.org:443
>>
>> What can I do with this?
>>
>> Best regards,
>> Michal Ramsza
>>
>
>
> I had this same problem, I think. To make connections work I had to add these two lines to my emacs configuration:
>
> (require 'gnutls)
> (add-to-list 'gnutls-trustfiles "/opt/local/etc/openssl/cert.pem")
>
> That's because my gnutls comes from MacPorts, and it puts the necessary certs file in /opt/local.
>
> That got me back to connecting to melpa, but I never figured out how to connect to Marmalade, and just gave up on it.
>
> Hope that helps
More information about the MacOSX-Emacs
mailing list