S/MIME: debug key usage bits

This commit is contained in:
M66B
2022-07-12 19:49:23 +02:00
parent d7217a236e
commit 22c8dd619f
2 changed files with 24 additions and 3 deletions

View File

@@ -3753,6 +3753,8 @@ public class FragmentCompose extends FragmentBase {
// Check public key validity
try {
chain[0].checkValidity();
// TODO: check digitalSignature/nonRepudiation key usage
// https://datatracker.ietf.org/doc/html/rfc3850#section-4.4.2
} catch (CertificateException ex) {
String msg = ex.getMessage();
throw new IllegalArgumentException(