I
I
Igor2014-07-12 16:39:53
Android
Igor, 2014-07-12 16:39:53

What is the password required for Android KeyChain?

I'm trying to call this code from the KeyChainDemo example:

private void installPkcs12() {
        try {
            BufferedInputStream bis = new BufferedInputStream(getAssets().open(
                    PKCS12_FILENAME));
            byte[] keychain = new byte[bis.available()];
            bis.read(keychain);

            Intent installIntent = KeyChain.createInstallIntent();
            installIntent.putExtra(KeyChain.EXTRA_PKCS12, keychain);
            installIntent.putExtra(KeyChain.EXTRA_NAME, DEFAULT_ALIAS);
            startActivityForResult(installIntent, INSTALL_KEYCHAIN_CODE);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

A dialog pops up in which you need to enter some password:
a00ed3d93b134c2d97112ae4938c0e4d.png
What kind of password do you need? Account password?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
ALEXANDER, 2021-03-30
@SOFTSITEX

The password for the PKCS #12 keystores.
You set them. Usually, when forming them, they are created under a password.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question