unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Better HTTPS support in (web client)
@ 2020-01-10 14:49 Ludovic Courtès
  2020-01-10 15:55 ` Chris Vine
  2020-01-10 16:43 ` Andy Wingo
  0 siblings, 2 replies; 6+ messages in thread
From: Ludovic Courtès @ 2020-01-10 14:49 UTC (permalink / raw)
  To: Guile Devel; +Cc: Andy Wingo

Hello Guilers!

I’ve pushed a ‘wip-https-client’ branch that contains improvements for
HTTPS support in (web client) that I’d like to be part of Guile 3:

  https://git.savannah.gnu.org/cgit/guile.git/log/?h=wip-https-client

In a nutshell:

  • $https_proxy support and a ‘current-https-proxy’ parameter;

  • better TLS alert handling;

  • verification of server certificates (!).

You can test it with a program as simple as:

  (use-modules (web client))

  (call-with-values
      (lambda ()
        (http-get "https://guix.gnu.org"))
    pk)

You can test how expired certificates are handled with:

  guix environment --ad-hoc libfaketime -- \
     faketime 2022-01-01 ./meta/guile /tmp/https.scm

To check whether $https_proxy is honored, try:

  https_proxy=http://localhost:8118 strace -e connect \
    ./meta/guile /tmp/https.scm

(I have Privoxy running as a proxy on that port.)

Feedback welcome!

Ludo’.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-01-18 15:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-10 14:49 Better HTTPS support in (web client) Ludovic Courtès
2020-01-10 15:55 ` Chris Vine
2020-01-13 10:05   ` Ludovic Courtès
2020-01-18 15:13   ` Amirouche Boubekki
2020-01-10 16:43 ` Andy Wingo
2020-01-13 10:55   ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).