Currently, if using a pfx keystore and specifying the wrong certificate alias, the keystore returns null for
val privateKey: PrivateKey = keyStore.getKey(
certAlias,
certPassword?.toCharArray()
) as PrivateKey
which then throws null cannot be cast to non-null type java.security.PrivateKey from line 360 in the SignModule.kt file, rather than informing the user that the requested alias was not found.