diff --git a/HIRS_AttestationCA/src/main/java/hirs/attestationca/persist/provision/helper/IssuedCertificateAttributeHelper.java b/HIRS_AttestationCA/src/main/java/hirs/attestationca/persist/provision/helper/IssuedCertificateAttributeHelper.java index 34e7db422..240dceef6 100644 --- a/HIRS_AttestationCA/src/main/java/hirs/attestationca/persist/provision/helper/IssuedCertificateAttributeHelper.java +++ b/HIRS_AttestationCA/src/main/java/hirs/attestationca/persist/provision/helper/IssuedCertificateAttributeHelper.java @@ -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; }