#1131007 xh: Missing dependency: openssl

Package:
xh
Source:
xh
Description:
Friendly and fast tool for sending HTTP requests
Submitter:
Ahmad Khayyat
Date:
2026-04-27 14:55:01 UTC
Severity:
normal
#1131007#5
Date:
2026-03-16 21:08:29 UTC
From:
To:
Dear Maintainer,

After installing xh using apt on a fresh debian container (debian:13.3-slim), using xh to make an http request (non-HTTPS) resulted in the following error:

```
xh: error: builder error

Caused by:
    OpenSSL error
```

Installing the openssl package resolved the issue.

The apt package should perhaps declare openssl as a dependency.

#1131007#12
Date:
2026-04-27 14:53:37 UTC
From:
To:
Hi Ahmad,

Sorry for the late reply. Was AFK for a while.

Thanks for the report. I have prepared a trixie-pu, see #1135095.

The fatal chain is:

1. The reqwest crate used to make HTTP requests initiated a TLS context
unconditionally - even if the URL is plain http://.
2. The openssl crate fails if it could not load certificates.
3. Some other dependency in the stack producing an obscure and confusing
error like OpenSSL does.

FWIW, debian:unstable-slim has a somewhat more useable xh, presumably thanks to
newer dependencies: it fetches plain HTTP URLs just fine, and the error message
is clear when fetching HTTPS URLs without certificates installed.