Link to home
Start Free TrialLog in
Avatar of indikad
indikad

asked on

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.
Avatar of b1xml2
b1xml2
Flag of Australia image

use the WinHTTP.WinHTTPRequest.5.1 object instead in VB6.
Avatar of indikad
indikad

ASKER

Thank you for this.

Indika.
Avatar of indikad

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of b1xml2
b1xml2
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of indikad

ASKER

Thanks for the this.
I have alsready done this project using MSXML2.ServerXMLHTTP40.  May be next time I might try this method.