简体   繁体   中英

The remote certificate is invalid according to the validation procedure from SSL Restful Service

I am receiving the error message, "the remote certificate is invalid according to the validation procedure", when I try to make a request. The service is being served on a Weblogic server. I have a certificate issued by the same CA and I have the root certificate plus chain along with the server's certificate.

Before I make the request, I call ServicePointManager.ServerCertificateValidationCallback and then I add the client certificate to the request. This all works but goes wrong when I try to make my request in my winform application. However, as a check, I have typed the url into the browser and it works. So,I am confused as to why I should get this error, when one the certificate has been checked, the server certificate has been validated and the client has been added to the request.

Can someone please help me?

Found the problem! The issue was due to the server certificate being issued with the incorrect distinguished name

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM