gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-03 12:56:00 26 4
gpt4 key购买 nike

在 curl 中,我可以像这样连接私钥、客户端证书和 ca 证书

curl --cert cert.pem --key key.pem --cacert ca.pem https://example.org

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

我尝试将 cert.pem 和 ca.pem 合并到一个新文件中并将其用作我的 --cert 文件,但这没有用。

最佳答案

我明白了。在 HTTPie 中,您只需像这样使用 --verify 传递 ca.pem

http --cert cert.pem --cert-key key.pem --verify ca.pem http://example.org

关于ssl - 如何在 HTTPie 中使用 CA(如 curl 的 --cacert),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44443269/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com