From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by c5ff346549e7 (Postfix) with ESMTPS id DC78A5D5 for ; Wed, 25 Sep 2019 13:49:18 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.64,548,1559512800"; d="asc'?scan'208";a="403349119" Received: from sympa.inria.fr ([193.51.193.213]) by mail2-relais-roc.national.inria.fr with ESMTP; 25 Sep 2019 15:49:17 +0200 Received: by sympa.inria.fr (Postfix, from userid 20132) id 82C1D7F216; Wed, 25 Sep 2019 15:49:17 +0200 (CEST) Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id A49847F0BD for ; Wed, 25 Sep 2019 15:49:11 +0200 (CEST) X-IronPort-AV: E=Sophos;i="5.64,548,1559512800"; d="asc'?scan'208";a="403349104" Received: from set.irisa.fr (HELO set) ([131.254.10.170]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES256-GCM-SHA384; 25 Sep 2019 15:49:11 +0200 User-agent: mu4e 1.2.0; emacs 26.3 From: Alan Schmitt To: OCaml Mailing List Date: Wed, 25 Sep 2019 15:49:10 +0200 Message-ID: <87impglc4p.fsf@polytechnique.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Subject: [Caml-list] https and Ocamlnet Reply-To: Alan Schmitt X-Loop: caml-list@inria.fr X-Sequence: 17819 Errors-to: caml-list-owner@inria.fr Precedence: list Precedence: bulk Sender: caml-list-request@inria.fr X-no-archive: yes List-Id: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --=-=-= Content-Type: text/plain; format=flowed Hello, I have a small utility that downloads and parses the RSS feed from ocaml.org to include in the OCaml Weekly News, but a recent change to ocaml.org broke it: it seems to only be served through https. I tried to add a TLS provider, but it's still failing with a cryptic error message. Here is an extract of the code showing the problem: #+begin_src ocaml let () = Nettls_gnutls.init() let site = "https://ocaml.org" let feed_name = "/feed.xml" let planet = Nethttp_fs.http_fs site let feedic = planet # read [] feed_name let feed_string = Netchannels.string_of_in_obj_channel feedic let () = feedic # close_in() #+end_src I can compile it with ocamlfind ocamlc -o test -linkpkg -package netclient,nettls-gnutls test.ml but when I run it, I get this error Fatal error: exception Nettls_gnutls.TLS.Error(GNUTLS_E_PUSH_ERROR) I know nothing of TLS and searching for the error did not point me toward any solution. I'm using gnutls 3.6.9 and ocamlnet 4.1.6. How can I access the site using https? Thanks, Alan --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE6lXof/BsSVW56ZmGBA0KO07S5ccFAl2LcFcACgkQBA0KO07S 5ce5PQf+PTb2KFWSTPCzK9e+mFwuqLHYVU78WeyofxIKLTbKIwTcvWVJUHlvKGQa 4CeHxTwZ1RVHFYlkM8/oJvnhAnUPfZ2dXjd4ZrVfZQHigrUdMi29+mC+kDlZvb/y 8EZ1qqgY4gnnAHt9xKq7X2LvdMH+45ud7vCGtw3eQrnhqBl8e/xMjAUyj97G1+Bc FkI0ypBWXt71hqQ7k/dGBn4OTVjsUPkgSzXSpC5RQrWgfH31nfyt7+X1Z5te2bRL 8F5eEWuQZ6FEvfc2Nv1lNivf3jGGFOnYzjaoeT7GP61FvMyYw8fmMChl+OIKO8xP h1VG30m0mrYrNGGqn/fiiys3kJ6w5Q== =lBaZ -----END PGP SIGNATURE----- --=-=-=--