Adding clientAuth to issued certificates (#883)

This commit is contained in:
CAFB385655BEB1060E85B6C080B432F8EB2A2AF78459BD6532124977B933154A 2024-11-20 18:17:20 -05:00 committed by GitHub
parent accacbd4db
commit e91c7a819a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,9 +55,11 @@ public final class IssuedCertificateAttributeHelper {
try {
extension = new Extension(Extension.extendedKeyUsage, true,
new ExtendedKeyUsage(new KeyPurposeId[] {
KeyPurposeId.getInstance(TCG_KP_AIK_CERTIFICATE_ATTRIBUTE)}).getEncoded());
KeyPurposeId.getInstance(TCG_KP_AIK_CERTIFICATE_ATTRIBUTE),
KeyPurposeId.getInstance(KeyPurposeId.id_kp_clientAuth)
}).getEncoded());
} catch (IOException e) {
// log.error("Error generating extended key usage extension");
log.error("Error generating extended key usage extension");
}
EXTENDED_KEY_USAGE_EXTENSION = extension;
}