本文介绍了在哪里可以下载一个ca.pem文件boost :: asio :: ssl?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在,它会加载名为 ca.pem 的文件,下载它?我试图从Firefox导出一个,也尝试使用我的系统中的一个,如 /usr/share/ca-certificates/mozilla/GeoTrust_Global_CA.crt ,但示例程序只返回消息

In the example of doc/html/boost_asio/example/cpp03/ssl/client.cpp - 1.58.0, it loads a file named ca.pem, but where can I download it? I've tried to export one from Firefox, and also tried to use the one in my system such as /usr/share/ca-certificates/mozilla/GeoTrust_Global_CA.crt, but the example program only returns message

Verifying /C=US/O=GeoTrust Inc./CN=GeoTrust Global CA
Handshake failed: certificate verify failed

有任何建议吗?非常感谢。

Any suggestion? Thanks a lot.

推荐答案

您可以使用由cURL库的作者转换为PEM格式的Mozilla证书包。您可以从下载。

You can use Mozilla certificate pack converted to PEM format by the authors of cURL library. You can download it from cURL site.

我试图运行这个boost.asio示例使用这个包,它成功运行。

I tried to run this boost.asio example using this pack and it ran successfully.

这篇关于在哪里可以下载一个ca.pem文件boost :: asio :: ssl?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 23:17