Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I have a problem, I using a securty certificate instaled in client station to connect the server, this client station is running a Web service and the Server is running other WebService. For considerations, the *.pfx file it's insttaled in the client,

This it's the log's message WS client when it try to connect to the Server running this metod "emitir":

1° old URL : works

2° new URL: "The request failed with HTTP status 403: URLBlocked."

3° IP public, 4° other IP public : "The remote certificate is invalid according to the validation procedure."

so, if I run SoapUi in the client station 1,2,3,4 works! with this, I suppose all firewall rule are set.

C#, FW 4.6.1
C#
System.Net.ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;
    
    Ws.ServiceService client = new Ws.ServiceService();
    
    client.Proxy = ObtenerProxy();
    
    ruta = @"E:\Apps\WsSeguros\AC-net.pfx";               
    
    client.ClientCertificates.Add(new System.Security.Cryptography.X509Certificates.X509Certificate2(ruta, "1234"));                              
    
    string response = client.emitir(xmlEmision, usr, psw);


please any idea.

Greetin

What I have tried:

I've tryed SoapUi in the client and it works
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900