How Can I Add A Ssl Certificate On My Apk?
Solution 1:
It will be very easy to setup & learn SSL if you go with a local server.
1 ] Setup a Server (For Eg; TomCat) for SSL communications (https://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html).
2 ] Write a simple Web-Service (http://www.radcortez.com/ssl-tls-rest-server-client-with-spring-and-tomee/).
3 ] Prepare a self -signed certificate using any one of the tool (Keytool , OpenSSL etc)
4 ] It is adviced to use commands to create keystore,certificate etc.But for the lazy people there is a GUI based program :) (http://keystore-explorer.org/downloads.html)
5 ] Now ,It's time to pin SSL certificate to Android Applications.Add your aliasname.cer (It can export from s/w mentioned in point [4])
6 ] Check host name programatically (https://infinum.co/the-capsized-eight/securing-mobile-banking-on-android-with-ssl-certificate-pinning).
7 ] Create a custom Trust Manager,So that we , can omit android system's default Trust Manager (https://github.com/ikust/hello-pinnedcerts)
Post a Comment for "How Can I Add A Ssl Certificate On My Apk?"