[ardoHTTP] How to set cert information?

[ardoHTTP] How to set cert information?

  
Forge Component
(15)
Published on 2015-06-04 by Ricardo Silva
15 votes
Published on 2015-06-04 by Ricardo Silva

I want to use this component to call web service which is using HTTPS and self-signed cert. But I got the error as the following:  

1. The underlying connection was closed: could not establish trust relationship for the SSL/TLS secure channel

2.The remote certificate is invalid according to the validation procedure.


Need I set some cert information when posting the request? If yes, how to set cert information when using HTTPPost method?



Hello Huang,

It's a really bad practice to use self-signed certificates. It would be preferable if you could use a proper certificate, or ask the third party exposing the webservice to do so.

If that is not possible, maybe this KB entry can help you configure your system to accept the self-signed certificate.

ardoHTTP does not have any means to override the default system behavior for authenticating HTTPS connections.

Let me know if you need further assistance with this.


Ricardo Silva wrote:

Hello Huang,

It's a really bad practice to use self-signed certificates. It would be preferable if you could use a proper certificate, or ask the third party exposing the webservice to do so.

If that is not possible, maybe this KB entry can help you configure your system to accept the self-signed certificate.

ardoHTTP does not have any means to override the default system behavior for authenticating HTTPS connections.

Let me know if you need further assistance with this.


Thank you very much for your reply. From your answer, can I say that if the web service server changes to use HTTPS instead of HTTP, all the changes in code level are that change "http" to "https" in the request URL?