-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Key Vault Certificate content_type #17492
Description
Hello,
I'm frustrated I couldn't determine certificate contentType (pkcs12 or pem) so I can use appropriate mechanisms to parse certificate content into certificate, private key and CA certificates in PEM format.
I am using Azure python SDK to read key vault certificate, private key, and CA in PEM format. The code that I use to decode the content depends on whether the certificate is imported to key vault in PEM or PKCS12 format.
I know "content_type" is used in certificate policy, and adding this to the certificate attributes can simplify my work. I can use "certificate.conten_type" from python to determine the certificate type (pem or pkcs12) similar to other attributes such as certificate.name.
I could use openssl to determine the format of the certificate but it requires extra code and latency. Certificate attribute can solve extra content parsing to determine just type.