Initial version that uses KeyStore and certificates pinning