list certificate stored in user credentials

前端 未结 2 838
深忆病人
深忆病人 2020-12-14 18:42

In Android 7 Nougat, user installed certificate goes to \"User credentials\" instead of \"Trusted credentials\"(which consists of system credential & user credential).

2条回答
  •  心在旅途
    2020-12-14 19:00

    In addition to changing how to configure the Ca (@Pravin D answer),Android has changed the way a pkcs12 certificate is loaded from 6 to 7. I highlight the important elements:

    When importing a pkcs12, is the root CA imported as trusted?

    • Android 6: Yes
    • Android 7: No

    Where can I see the trusted credentials?

    • Android 6: Settings ---> Security-->Trusted credentials (system & user)
    • Android 7: Settings ---> Security-->Trusted credentials (system & user tab)

    How to install user credentials?

    • Android 6: pkcs#12 file, certificate file, programmatically
    • Android 7: pkcs#12 file( without private keys), certificate file, programmatically, custom CA configuration(@ Pravin D answer)

    Where can I see the user credentials (private keys)?

    • Android 6: not available from settings
    • Android 7: Settings-->Security-->User credentials

    Is it possible to list user credentials programmatically?

    • Android 6: No
    • Android 7: No

    Reviewing Android code in depth, internal Android Keystore is wilfully hidden, only available to use from Android core classes. It is not possible to implement a workaround to list user credentials

提交回复
热议问题