Open swist opened 1 year ago
@swist -- Many Thanks for trying it out.
I am using it with different OCaml versions and package versions with no issues, but anything is possible.
Not quite sure yet what is the issue - but will try to replicate it on my side.
https://example.atlassian.net/
opam list
ca-certs 0.2.3
mirage-crypto 0.11.1
tls-lwt 0.17.0
x509 0.16.4
ocaml --version
opam reinstall tls-lwt
THANKS
Hey! Thanks for quick reply. I picked this up for similar reasons to you (wanted to learn something new) so I'm still learning the tooling!
I'm on OSX (ARM), Jira Cloud Server URI matches the expected format.
The package versions you care about are:
ca-certs 0.2.3 Detect root CA certificates from the operating system
mirage-crypto 0.11.1
x509 0.16.4 Public Key Infrastructure (RFC 5280, PKCS) purely in OCaml
tls-lwt 0.17.0 Transport Layer Security purely in OCaml, Lwt layer
They appear to match.
Ocaml version
❯ ocaml --version 9:27
The OCaml toplevel, version 5.0.0
Reinstalling tls-lwt
and rebuilding yielded the same error
@swist
Could you test this sample code to check if tls-lwt is working OK on your machine https://github.com/whoek/ocaml-https-demo
Hey, thanks for the reduced example. Looks like there is something wrong with my local setup -
Done: 57% (4/7, 3 left) (jobs: 0)Fatal error: exception Unix.Unix_error(Unix.ECONNRESET, "read", "")
if it's useful in any way, running:
openssl s_client -connect httpbin.org:443
Results in a successful SSL handshake on my machine. Perhaps I need to pass something to let lwt
know where to link the local cert store? (not sure if it's a different location on arm)
Steps to reproduce:
Output:
Do I need to install a specific version of
tls-jwt
?