Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1369
  • Last Modified:

Client Certificate with HTTPS request - MSXML - Urgent

Hi all,

Using VB6

I have to send a name of a Client Certificate along with HTTPS request .  In the egs suggest to do this is using "setOption"
objHTTP.setOption SXH_OPTION_SELECT_CLIENT_SSL_CERT, CertificateFileName

This "setOption" is part of the "MSXML2.ServerXMLHTTP " and everytime I try to send requests, an error message comes up "This server does not implement the requested method".  What is this error ? Is there any other way that I can send this CertificateName within VB6.  If I use MSXML.XMLHTTP, I can send requests, but unable to send the certificate name.

Thaks a lot
Indika

Note: I had this under the wrong topic befopre, hopefully will get some answers this time.
0
indikad
Asked:
indikad
  • 3
  • 2
1 Solution
 
b1xml2Commented:
use the WinHTTP.WinHTTPRequest.5.1 object instead in VB6.
0
 
indikadAuthor Commented:
Thank you for this.

Indika.
0
 
indikadAuthor Commented:
I did use the latest version of MSXML Version 4 with SP2.  The object is MSXML2.ServerXMLHTTP40 and this has the method setOption to set the name of the Client Certificate.  This works fine in VB6.  I did not try WinHTTP object for this.
Is there any advantage/difference with these two object?


Thanks
Indika
0
 
b1xml2Commented:
it is the same object under the covers. It is recommended to use this object esp. when applying SP2. In some boxes, it caused ServerXMLHTTP to get mucked up inside the registry.
0
 
indikadAuthor Commented:
Thanks for the this.
I have alsready done this project using MSXML2.ServerXMLHTTP40.  May be next time I might try this method.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now