I was playing around, trying to enable self signed SSL certificates in our development environment to simulate the production SSL setup and encountered the following error, after creating the certificates using SelfSSL tool
[AuthenticationException: The remote certificate is invalid
according to the validation procedure.]
We have a application server that hosts our BL webservices. I installed a certificate using the above mentioned tool. Since, the .NET code can not validate this self-signed certificate it throws the above error.
This is easy to fix. All you need to do is install the CA root certificate on the web server. I used the MMC certificates tool to do that. You can use the following steps to install the CA root certificate
First step is to save the problematic certificate onto hard disk. Open IE and type the url of the app server or whatever server you are trying to access through the code. Click on Continue, if it shows a warning message, saying the certificate is not trusted and blah.. blah.. Then click on the Lock icon in the IE address bar. Then, you can export the certificate as shown below, by clicking on Copy to File

-
Open MMC using mmc command.
-
Click on File menu and click on Add/Remove snapin.
- Now in the opened dailog, click Add and select Certificates
- Make sure you select "Computer Account" in the certificates Snap-in dialog box
- Select the Local Computer
- Then import the saved certificates onto the "Trusted Root Certification Authorities" node. See the screenshot below

After this browse to the saved certificate and import the certificate. Thats it. Your code should be able to validate this certificate after this step
2e447c07-db67-4bc1-9daf-c916315ba0d7|0|.0