Android seems to be using a bouncycastle provider. This is the default provider that returns api. To make sure which one is available by default on the device, use KeyStore.getDefaultType() .
In my case, it returned "BKS". There is also an exception when there is a ".". symbol on the way to the keystore.
when I stored the storage in a folder with the name of my package (as recommended in the documentation for Android), this led to an exception.
You can also check this out .
source share