/** * This method will launch an intent to install the key chain */ publicstaticfinalStringPKCS12_FILENAME="keychain.p12"; privatestaticfinalStringDEFAULT_ALIAS="My Key Chain"; privatestaticfinalintINSTALL_KEYCHAIN_CODE=1; privatevoidinstallPkcs12() { try { // prepare a PKCS12 format file with filename *.p12 or *.pfx BufferedInputStreambis=newBufferedInputStream(getAssets().open( PKCS12_FILENAME)); byte[] keychain = newbyte[bis.available()]; bis.read(keychain);