Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Send Client Certificate

978 views
Skip to first unread message

Tom

unread,
Feb 10, 2008, 9:55:58 AM2/10/08
to
I have imported a client certificate into IE7 and then exported to a .pfx
file. I'm trying to send a request to the provider (of the cert) to receive
XML data. I've never done this before and I think I'm only a couple of
lines of source code away. I have not been given any instructions from the
provider regarding IIS configurations or anything else...just the import and
export to file.

Here's what I have so far, which yields the following error:

msxml3.dll error '80072f0c'
A certificate is required to complete client authentication

Thanks in advance...Tom

dim responseText
dim strRequest
dim objSrvHTTP
dim objXMLDocument
dim objXMLReponseDocument
set objSrvHTTP = CreateObject("MSXML2.ServerXMLHTTP")
set objXMLDocument = CreateObject("MSXML2.DOMDocument")
set objXMLReponseDocument = CreateObject("MSXML2.DOMDocument")
objXMLDocument.async = false
objXMLDocument.load(Server.MapPath("Request.xml"))
' 2 wild stabs on my part
objSrvHTTP.setOption(2) = 13056
'SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS
objSrvHTTP.setOption 3, "CsS Services"
objSrvHTTP.open "POST", "https://test.rbsecure.com/secure2/bin/XMLPost",
false
objSrvHTTP.SetRequestHeader "content-Type","text/xml"
objSrvHTTP.send objXMLDocument
Response.Write objSrvHTTP.responseText
Response.End

Madhukar L

unread,
Mar 9, 2011, 9:47:30 AM3/9/11
to
Hi Tom,
I am facing the same issue with my VB Script code file.
Even after installing certificates and setting its friendly name using setOption() , I am getting the same error. If you have resolved this, please let me know.

I have VB Script file with code written as bellow

Set lobjXMLHTTPObj = CreateObject("MSXML2.ServerXMLHTTP.6.0")
lobjXMLHTTPObj.setOption (3) = "<Cert. Friendly Name>"
lobjXMLHTTPObj.Open "POST", lstrURL, False, id, pwd

lobjXMLHTTPObj.setRequestHeader "Content-Type", "application/x-wmflatfile"

lobjXMLHTTPObj.Send lstrREQMessage

Am I missing anything?


Regards
Madhukar


> Submitted via EggHeadCafe
> Execute Long Running ASP.NET Process on a Background Thread
> http://www.eggheadcafe.com/tutorials/aspnet/a8bf53d4-08f2-40eb-aff6-3b97009169c7/execute-long-running-aspnet-process-on-a-background-thread.aspx

Mayayana

unread,
Mar 9, 2011, 10:33:47 AM3/9/11
to
You're posting to a 3-year-old discussion that
has been copied by a website that's trying to
make money from it.
That's not usenet. If you don't klnow what
usenet is, look it up. If you don't have a news
server you can use this one for free:

http://eternal-september.org/

Then subscribe to this group:

microsoft.public.scripting.vbscript

Once you've done that you'll actually be part of
the discussion here, rather than trying to talk
to a 3-year-old copy of it.

0 new messages