Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/jenkins/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用httr为基于证书的身份验证指定证书、密钥和根证书?_R_Client Certificates_Rcurl_Httr - Fatal编程技术网

如何使用httr为基于证书的身份验证指定证书、密钥和根证书?

如何使用httr为基于证书的身份验证指定证书、密钥和根证书?,r,client-certificates,rcurl,httr,R,Client Certificates,Rcurl,Httr,我正试图使用httr库从需要基于证书的身份验证的服务器访问数据。我有证书cert.pem、密钥文件key.pem和根证书caroot.pem 下面的代码很有用 curl-H用户名:sriharsha@rpc.com-cert cert.pem-key certkey.key-cacert caroot.pem 如何将certkey.key和caroot.pem指定给httr GET请求。我正在尝试使用下面的R命令,但找不到指定cert key和caroot的选项 cafile=???? r基于,

我正试图使用httr库从需要基于证书的身份验证的服务器访问数据。我有证书cert.pem、密钥文件key.pem和根证书caroot.pem

下面的代码很有用

curl-H用户名:sriharsha@rpc.com-cert cert.pem-key certkey.key-cacert caroot.pem

如何将certkey.key和caroot.pem指定给httr GET请求。我正在尝试使用下面的R命令,但找不到指定cert key和caroot的选项

cafile=???? r基于,选项为

ssl证书是 ssl密钥是 ssl ca是 按照下面的命令工作

cafile=ca.pem

certfile=cert.pem

keyfile=certkey.key


特别是,命令行选项-cacert对应于配置选项cainfo