Split from https://dev.gnupg.org/T7658
Signing of an unsigned document results in an error "all certs invalid or expired", which is not the case in kleopatra:
{F23173904}
{F23173931}
Here's the gpgme log (`GPGME_DEBUG=9`) of signing:
{F23174684}
To reproduce:
1. Install `gpg4win-5.0.0-beta190.exe`
2. Import via Kleopatra (Drag&Drop): from `testzertifikate_2023/`
- `g10code-root-ca-2020.crt`
- `edward.tester@demo.gnupg.com.p12`
- `ted.tester@demo.gnupg.com-sign.p12`
- `ted.tester@demo.gnupg.com-encr.p12`
2.5 Trust the `root-ca-2020@gnupg.com` root certificate (unless you did so already on import).
3. Open Okular, run `Menu: Extras` -> `Digital signieren...`