How to Add SSL Certificate in Android Application and Solving SSL Handshake Exception

In this tutorial, I will guide you on How to integrate SSL Certificate in your Android Application and Fixing SSL Handshake Exception on Android Devices below API level 20. We will use below TLS SOCKET FACTORY class. import android.content.Context;import java.io.IOException;import java.io.InputStream;import java.net.InetAddress;import java.net.Socket;import java.net.UnknownHostException;import java.security.KeyManagementException;import java.security.KeyStore;import java.security.KeyStoreException;import java.security.NoSuchAlgorithmException;import java.security.cert.Certificate;import java.security.cert.CertificateException;import java.security.cert.CertificateFactory;import javax.net.ssl.SSLContext;import javax.net.ssl.SSLSocket;import javax.net.ssl.SSLSocketFactory;import javax.net.ssl.TrustManagerFactory;public […]

Begin typing your search term above and press enter to search. Press ESC to cancel.

Back To Top