It is frequent that you will need to either consume web references or expose web services that are called in secure HTTP (HTTPS). In that situation, you may run into problems if the certificate you are using in your web server, or the certificate in the server exposing the service you are consuming, are not issued by a trustworthy authority.
In such cases, you may be presented with an error similar to the one below:
This scenario becomes more frequent in the non-productive environments - it is frequent that companies purchase certificates for the production servers, but install self-issued certificates for the other staging environments.
To overcome this error, you need to install the certificate that is used by the web service provider in the server that will be calling the web service.
Obtaining the certificate
To obtain the certificate, you can either:
Installing the certificate
In Windows 2003, certificate installation can be done by using the follwing procedure:
After that, simply restart IIS and try calling the web service again.