0

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

curl_setopt($curl, CURLOPT_SSLCERT, '/path/to/file.pem');

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

Keith Palmer Jr.
  • 27,666
  • 16
  • 68
  • 105

1 Answers1

0

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.

Community
  • 1
  • 1
Saif Khan
  • 18,402
  • 29
  • 102
  • 147
  • This doesn't answer my question. I don't want the certificate sent in the actual HTTP request body, that's not how the CURL option works. – Keith Palmer Jr. May 26 '11 at 18:45
  • Well...ummm...this might be your solution http://msdn.microsoft.com/en-us/library/system.net.webclient.aspx – Saif Khan Jun 03 '11 at 14:27