如何在HTTPie中使用CA(如curl的--cacert)

Ahm*_*ter 2 ssl curl httpie

在卷曲中,我可以连接私钥,客户端证书和这样的ca证书

curl --cert cert.pem --key key.pem --cacert ca.pem https://example.org
Run Code Online (Sandbox Code Playgroud)

我可以在HTTPie中看到--cert和--cert-key选项,但是如何在HTTPie中使用--cacert选项?

我尝试将cert.pem和ca.pem组合在一个新文件中并将其用作我的--cert文件,但这不起作用.

Ahm*_*ter 9

我知道了.在HTTPie中,您只需使用--verify传递ca.pem

http --cert cert.pem --cert-key key.pem --verify ca.pem http://example.org
Run Code Online (Sandbox Code Playgroud)