开发者

VB .NET way to duplicate PHP + CURL curl_setopt($curl, CURLOPT_SSLCERT, '/the/path/to/the/file.pem');

Using PHP, I send a .PEM certificate to a remote host with an outgoing request like this:

curl_setopt开发者_如何学C($curl, CURLOPT_SSLCERT, '/path/to/file.pem');

Is there a way to do this using VB .NET?


Look at the X509Certificate2 Class...load the certificate object then use the

ToString(True)

To get a verbose result...then transport that however you wish (including via SSL)...HttpWebRequest if the remote machine is open to accept http...here is a stackoverflow question on that.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜