Skip to content

Key Vault Certificate content_type  #17492

@Jordan0928

Description

@Jordan0928

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.

Metadata

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.KeyVaultcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions