简体   繁体   English

如何在Linux中找到curl本地(客户端)证书

[英]how to find curl local(client) certificate in linux

当我使用curl获取https url时,如果不使用'--cert'选项,则默认使用哪个证书文件。

A normal https request relies on the server side certificate to be validated. 正常的https请求依赖于要验证的服务器端证书。 Client side certificates are optional and actually very rare. 客户端证书是可选的,实际上很少见。 So the answer to your question is: "none". 因此,您的问题的答案是:“无”。

You do not need a client side certificate to encrypt data. 您不需要客户端证书即可加密数据。 Those are two separate things. 那是两件事。 A client side certificate is used to identify a unique client for the purpose of authorization. 客户端证书用于标识唯一客户端以进行授权。 The encryption of the request payload is based on the server side certificate. 请求有效负载的加密基于服务器端证书。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM