fun File.toKeyStore(type: String = KeyStore.getDefaultType(), storePasswd: CharArray? = null): KeyStore?
Returns a KeyStore instance by loading this keystore file.
type - KeyStoreType string. By default it uses JDK default type.
storePasswd - store password of the keystore.