Send Client Certificate

Author Message
Matt1034

  • Total Posts : 2
  • Scores: 0
  • Reward points : 0
  • Joined: 2/9/2008
  • Status: offline
Send Client Certificate Saturday, February 09, 2008 3:13 AM (permalink)
0
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 have not been given any instructions from the
provider regarding IIS configurations or anything else...they told me to 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 and I hope I'm in the right place...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" ' I have no clue

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


Is there something I'm missing in IIS or is this just a coding issue.

Thanks in advance...Tom

 
#1

    Online Bookmarks Sharing: Share/Bookmark

    Jump to:

    Current active users

    There are 0 members and 1 guests.

    Icon Legend and Permission

    • New Messages
    • No New Messages
    • Hot Topic w/ New Messages
    • Hot Topic w/o New Messages
    • Locked w/ New Messages
    • Locked w/o New Messages
    • Read Message
    • Post New Thread
    • Reply to message
    • Post New Poll
    • Submit Vote
    • Post reward post
    • Delete my own posts
    • Delete my own threads
    • Rate post

    2000-2012 ASPPlayground.NET Forum Version 3.9