mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-19 21:17:59 +00:00
Adding clientAuth to issued certificates (#883)
This commit is contained in:
parent
accacbd4db
commit
e91c7a819a
@ -55,9 +55,11 @@ public final class IssuedCertificateAttributeHelper {
|
|||||||
try {
|
try {
|
||||||
extension = new Extension(Extension.extendedKeyUsage, true,
|
extension = new Extension(Extension.extendedKeyUsage, true,
|
||||||
new ExtendedKeyUsage(new KeyPurposeId[] {
|
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) {
|
} catch (IOException e) {
|
||||||
// log.error("Error generating extended key usage extension");
|
log.error("Error generating extended key usage extension");
|
||||||
}
|
}
|
||||||
EXTENDED_KEY_USAGE_EXTENSION = extension;
|
EXTENDED_KEY_USAGE_EXTENSION = extension;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user