SSL issue with haskell server on nixos

Hi!

I got this SSL error (More Handshake failures · Issue #425 · haskell-tls/hs-tls · GitHub)

Error while contacting the intray server:
ConnectionError (HttpExceptionRequest Request {
  host                 = "api.testing.intray.eu"
  port                 = 443
  secure               = True
  requestHeaders       = [("Content-Type","application/json;charset=utf-8")]
  path                 = "/login"
  queryString          = ""
  method               = "POST"
  proxy                = Nothing
  rawBody              = False
  redirectCount        = 10
  responseTimeout      = ResponseTimeoutDefault
  requestVersion       = HTTP/1.1
}
 (InternalException (HandshakeFailed (Error_Protocol ("expecting server hello, got alert : [(AlertLevel_Fatal,HandshakeFailure)]",True,HandshakeFailure)))))

When I run the same command via curl, I don’t have this problem:

curl -X POST \                                                                                                          https://api.testing.intray.cs-syd.eu/login \
  -H 'Content-Type: application/json' \
  -d '{
        "username":"Test001",
        "password":"0000" }

I’m using a deployment of development of GitHub - NorfairKing/intray: GTD Capture tool at api.testing.intray.eu and testing.intray.eu.
I’m using nixpkgs version

{
  rev = "323fe92057bb38475a446ff5e18d3b388c2e4403";
  sha256 = "sha256:0hmjasnq0x40i2x22d4qrqf1hph4bwrjhx4zwz2s6nyqfqinbcyn";
}

To build the binary, and version

{
  rev = "9794d1e5fc4af39a864b0287d7983e019cc41391";
  sha256 = "sha256:19r1cd4aaddpalfs2amb6k29h61qc2j3nswv8vz7hmdfqlk33wxl";
}

To build the nixos server that runs it.

How would I go about debugging this?

Looks like this might be related to this:
https://github.com/NixOS/nixpkgs/pull/80952

That’s exactly right, thanks!