Invaild S/MIME certificates are offered for encryption in Kleopatra. This then correctly results in an error message when trying to encrypt.
Expected: That the invalid certificate is not offered in the first place, since encryption with t is not possible anyway.