locked
2 Way SSL in .net (server Side) RRS feed

  • Question

  • User2107523242 posted

    Hi,

    I have made a webservice without any SSL Authentication. Now I want to add 2 way SSL authentication security.  I have done it as client in past. But Never on server side. This is first time I am implementing 2 way  Mutual SSL Authentication on server size. We are using WSDL and created a proxy from the WSDL files. But Do you know how to authenticate on Server side?

    Dim certificate As String = "C:\MyClient.pfx"
    Dim certificates As New X509Certificate2Collection(New X509Certificate2(certificate, "password"))
    obj_serv.ClientCertificates.Add(certificates(0))
    obj_res = obj_serv.CallGetCoverage(obj_req)

    Thanks

    Thursday, July 7, 2016 7:26 PM

Answers