How to Fix the ”Not a Trusted Site” Error on Your Client Application

Most of us have frequently encountered an issue when our client application tries to establish an SSL-based connection to a remote server, sending out one of the common errors, “Not a trusted site,” “This Connection is Untrusted,” or “The site’s security certificate is not trusted.” This warning is raised by your client application and refused to connect to the remote server. This is one of the most common issues we, web service developers, face in our day-to-day work. The main reason is that the certificate provided by the server application for an SSL handshake is not registered in your truststore file. How will you resolve this issue? You have to download the remote server certificate and import it into your trust store. Here, I am providing an example of a Java application that was originally provided by Sun Microsystems that I have customized for this demonstration. Let’s get into it!

Read full news article on Dzone

 


Date:

Categorie(s):