如何在邮递员中传递自定义证书?

Vis*_*han 5 curl ssl-certificate postman docker-swarm

我在我的机器中创建了一个使用 TLS 证书保护的集群。现在我需要使用 TLS 证书通过邮递员获取信息。

我如何通过邮递员证书?

我的工作 Curl 命令:curl https://<"IP-Address">:2376/images/json --cert cert.pem --key key.pem --cacert ca.pem

UDI*_*SHI 2

转到设置图标 -> 设置 -> 证书 -> 添加证书

输入以下信息

Host   https://<"IP-Address">:2376

CRT file location

Key file location

Passphrase 
Run Code Online (Sandbox Code Playgroud)

然后运行你的 docker API

https://<"IP-Address">:2376/v1.24/images/json
Run Code Online (Sandbox Code Playgroud)

你将得到 JSON 输出