SSL Client Cert - msxml4.dll error '80072f9a'

Discussion in 'C#' started by zherlock, Apr 13, 2008.

  1. #1
    SSL Client Cert - msxml4.dll error '80072f9a'

    --------------------------------------------------------------------------------

    I try to connect to a Apache server which is set up to do "Fake Basic Auth" using SSL Client Certificates. I successfully test this in I.E. on the server I try to run the ASP script from, just visiting the Apache server in IE and selecting the same SSL Client cert as the ASP code is to use works perfectly.

    I am struggeling getting the ASP code to connect to the Apache server exepcting a Client Cert. Have tried a lots of settings and access controll adjustments for certificates and so on on the server. Please advice, thank you!


    The Code:

    ---------------------------------------

    strXMLInput = f.ReadAll
    f.Close
    Set f=Nothing
    Set fs=Nothing
    SoapEnvelope = SOAPEnvelopeStart() & server.HTMLEncode(strXMLInput) & SOAPEnvelopeEnd()
    Const SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS = 2
    Const SXH_SERVER_CERT_IGNORE_ALL_SERVER_ERRORS = 13056
    Const SXH_OPTION_SELECT_CLIENT_SSL_CERT = 3
    dim objXmlResult: Set objXmlResult = Server.CreateObject("MSXML2.DOMDocument.3.0")
    dim objHttp: Set objHttp = Server.CreateObject("Msxml2.ServerXMLHTTP.4.0")
    Call objHttp.open("POST", "https://somedomain/somewsdlfile.wsdl", False)
    Call objHttp.setOption(SXH_OPTION_SELECT_CLIENT_SSL_CER T,"LOCAL_MACHINE\My\SomeSSLClientCert")

    'comment back in the ignore ssl cert error flags
    'Call objHttp.setOption(SXH_OPTION_IGNORE_SERVER_SSL_CER T_ERROR_FLAGS, SXH_SERVER_CERT_IGNORE_ALL_SERVER_ERRORS)
    Call objHttp.setRequestHeader("Man", "POST https://somedomain/somewsdlfile.wsdl HTTP/1.1")
    Call objHttp.setRequestHeader("MessageType", "CALL")
    Call objHttp.setRequestHeader("content-type", "text/xml; charset=utf-8")
    Call objHttp.setRequestHeader("SOAPAction", "''")
    Call objHttp.send(strXMLInput)



    Environment:

    -----------------------------------------

    Windows Server 2003





    The Error in IE:

    -----------------------------------------

    msxml4.dll error '80072f9a'
    System error: -2147012710.



    I tried:

    ----------------------------------------

    Changing from ServerXMLHTTP 4.0 to ServerXMLHTTP.3.0, which produces the following error:
    msxml3.dll error '80072f9a'
    A security error occurred
     
    zherlock, Apr 13, 2008 IP
  2. InfoSmith

    InfoSmith Peon

    Messages:
    884
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #2
    InfoSmith, Apr 13, 2008 IP
  3. zherlock

    zherlock Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    That would equal the same is if I comment back in "Call ojbHttp.setOption(.." ?
    :


    Const SXH_SERVER_CERT_IGNORE_ALL_SERVER_ERRORS = 13056
    Const SXH_OPTION_SELECT_CLIENT_SSL_CERT = 3

    Call objHttp.setOption(SXH_OPTION_IGNORE_SERVER_SSL_CER T_ERROR_FLAGS, SXH_SERVER_CERT_IGNORE_ALL_SERVER_ERRORS)



    Have you seen the same error? "System error.."
     
    zherlock, Apr 14, 2008 IP