[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling 'select' from emacs_gnutls_pull

From: Ted Zlatanov
Subject: Re: Calling 'select' from emacs_gnutls_pull
Date: Sun, 17 Feb 2013 08:20:42 -0500
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)

On Sat, 16 Feb 2013 21:30:53 +0200 Eli Zaretskii <address@hidden> wrote: 

>> From: Ted Zlatanov <address@hidden>
>> Date: Sat, 16 Feb 2013 13:00:58 -0500
EZ> Thanks.  It would be good if you (or someone else) could describe a
EZ> simple setup for reading stuff via GnuTLS from some URL, which I could
EZ> then try on my machine under a debugger.
>> Sure.  It's actually quite simple to open a SSL connection to the HTTP/S
>> port (the SERVICE parameter is either a string or an integer):
>> #+begin_src lisp
>> (open-gnutls-stream "tls" "tls-buffer" "yourserver.com" "https")
>> #+end_src
>> If GnuTLS support is enabled, opening any SSL connection with the
>> `url-*' function should do it too... it's the default transport.
>> You can also call `gnutls-negotiate' directly, see `gnutls.el' for the
>> details.

EZ> OK.  Any suggestions for yourserver.com that I could use?

https://www.gnu.org or https://www.google.com

EZ> Also, would there be any problems with certificates, and if so, where
EZ> can I find a bundle?  (I'm quite ignorant about these issues, sorry.)

I believe by default, only warnings are printed about certificate
mismatch so you should be OK.  Look at `gnutls-trustfiles' if you want
to customize the bundles.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]