public static boolean isInstalled(Context context, String alias) {
        return new File(context.getCacheDir(),
                alias + KEY_JKS_FILE_EXTENSION).exists();
    }
Whether the certificate with given alias has been installed.

@param context Any context.
@param alias Key store alias.
@return True if the certificate has been installed.
netbare-core/src/main/java/com/github/megatronking/netbare/ssl/JKS.java