Emacs (url-retrieve-synchronously) and TLS
(url-retrieve-synchronously) was giving me the following error when trying to use https:
Opening TLS connection with `gnutls-cli -p %p %h'...failed
Opening TLS connection with `gnutls-cli -p %p %h --protocols ssl3'...failed
Opening TLS connection with `openssl s_client -connect %h:%p -no_ssl2'...done
Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
url-http-wait-for-headers-change-function(1 368 367)
url-http-generic-filter(#<process ...> "6E773...
Session-ID-ctx:
Master-Key: AE99...
Key-Arg : None
Compression: 1 (zlib compression)
Start Time: 1221...
Timeout : 300 (sec)
Verify return code: 21 (unable to verify the first certificate)
---")
Solution:
apt-get install gnutls-bin