Describe the bug
I can not create a cert with Certificate Transparency turned on
To Reproduce
Steps to reproduce the behavior:
import { client } from "@azure/keyvault-certificates";
await client.beginCreateCertificate("EXAMPLE-CERT-NAME", {
subject: `cn=Something Inc.`,
issuerName: "Unknown",
exportable: false,
keyType: "RSA-HSM",
enhancedKeyUsage: ["1.3.6.1.5.5.7.3.1", "1.3.6.1.5.5.7.3.2"],
keyUsage: ["digitalSignature", "keyEncipherment", "keyCertSign"],
certificateTransparency: true,
keySize: 2048,
});
Error:
"error": {
"code": "BadParameter",
"message": "Cannot set Certificate Transparency for a manual enrollment."
}
Expected behavior
Certificate request is created
@sadasant could you take a look?
@davej
The certifciateTransparency flag on the policy causes Key Vault to notify the issuer to publish the certificate to the certificate transparency list when new certs are signed. This only applies for supported issuers which Key Vault integrates with to issue new certificates.
In this case you have specified the issuer "Unknown" which indicates that Key Vault will merely create the certificate and the corresponding CSR, and it's the callers responsibility to sign the certificate with whatever issuer they choose. In this case it would be up to the caller to indicate to the issuer to publish the certificate to the certificate transparency list.
Is that helpful? I can do my best to find more information if necessary.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @RandalliLama, @schaabs, @jlichwa.
Adding the Service Attention label to see if the service team can improve the docs around this.
@sadasant That's super helpful, thank you.
For context, I guess my confusion came from two angles.
@davej I have submitted the feedback to our team.
I wonder, have we resolved your concerns? Please let me know if there's anything else we could do.
@sadasant Yes. Definitely one of the best experiences that I've had posting an issue to a commercial Github repo. Feel free to close this issue.
Most helpful comment
Adding the
Service Attentionlabel to see if the service team can improve the docs around this.