SSL_CTX_load_verify_locations 和受信任的证书

SSL_CTX_load_verify_locations and trusted certificates

来自SSL_CTX_load_verify_locations

SSL_CTX_load_verify_locations - set default locations for trusted CA certificates

这是否意味着我可以将证书放在位置(或文件)中,作为参数传递给 SSL_CTX_load_verify_locations 函数。这些证书是否会自动受到信任?

没错。这就是您指定受信任的证书颁发机构列表的方式。