Scoobynetters to the rescue again? VB/XML/SSL experts?
#1
Help!
I need to submit an XMLRPC call using SSL from VB6. I've been given a certificate for the SSL connection which I've installed in my PC certificate store.
I am instantiating the ServerXMLHTTP object from MSXML4 SDK. Then I want to Post the XML at a URL and get the response back doing something like this:
Set objXMLReq = CreateObject("MSXML2.ServerXMLHTTP")
Call objXMLReq.open("POST", _
"https://someurl", False)
Call objXMLReq.send(strMessage)
strResponse = objXMLReq.responseText
This rejects me, as I am obviously not using the certificate to establish the SSL connection. Anyone know what I should be doing.
TIA,
Alex
I need to submit an XMLRPC call using SSL from VB6. I've been given a certificate for the SSL connection which I've installed in my PC certificate store.
I am instantiating the ServerXMLHTTP object from MSXML4 SDK. Then I want to Post the XML at a URL and get the response back doing something like this:
Set objXMLReq = CreateObject("MSXML2.ServerXMLHTTP")
Call objXMLReq.open("POST", _
"https://someurl", False)
Call objXMLReq.send(strMessage)
strResponse = objXMLReq.responseText
This rejects me, as I am obviously not using the certificate to establish the SSL connection. Anyone know what I should be doing.
TIA,
Alex
#2
do you know the exact error?
are you sure that the correct certificate is being picked up?
could you use the setOption method SXH_OPTION_SELECT_CLIENT_SSL_CERT to define the correct certificate to be used?
or even use the setOption method and SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS to see if you can get it working without the certificate... not sure about this tho, not used it.
msdn
are you sure that the correct certificate is being picked up?
could you use the setOption method SXH_OPTION_SELECT_CLIENT_SSL_CERT to define the correct certificate to be used?
or even use the setOption method and SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS to see if you can get it working without the certificate... not sure about this tho, not used it.
msdn
#3
I'm doing both of those :-(
I'm ignoring all errors, and specifying the name of the client cert with two setoption calls, but I think I need to do more - just don't know what
I'm ignoring all errors, and specifying the name of the client cert with two setoption calls, but I think I need to do more - just don't know what
#4
dont know what has to be done at the mo
but ill have more of a think
can u use the certificate in another way?
to ensure that it works?
have u connected to a non-SSL url and achieved success with the code?
... off to think more..
but ill have more of a think
can u use the certificate in another way?
to ensure that it works?
have u connected to a non-SSL url and achieved success with the code?
... off to think more..
#5
I don't have any non-SSL URL's to try
The SSL URL, when browsed to returns an access error, even though I have the cert installed in the browser cert store, but the other party told me that I wouldn't be able to browse to it.
When they do it from Java, they set up an SSL socket connection, assign the cert to it and then connect through that, but I can't find any alternatives in VB
Alex
The SSL URL, when browsed to returns an access error, even though I have the cert installed in the browser cert store, but the other party told me that I wouldn't be able to browse to it.
When they do it from Java, they set up an SSL socket connection, assign the cert to it and then connect through that, but I can't find any alternatives in VB
Alex
Thread
Thread Starter
Forum
Replies
Last Post
The Joshua Tree
Computer & Technology Related
18
11 September 2015 09:24 PM
Dream Weaver
ScoobyNet General
22
24 May 2001 05:39 PM