Closed marek-veber closed 7 years ago
the code:
final Enumeration<String> aliases = getAliases(keystore);
returns aliases of two types:
keystore.isKeyEntry(a) == true
and
keystore.isCertificateEntry(a) == true
But using method select first one can be randomly unvanted CertificateEntry (not required KeyEntry) ;)
So, sometimes initialisation fails with an error such as "bad key format", while using certificate as a key ;(
Merged, thank you for your contribution!
the code:
returns aliases of two types:
and
But using method select first one can be randomly unvanted CertificateEntry (not required KeyEntry) ;)
So, sometimes initialisation fails with an error such as "bad key format", while using certificate as a key ;(