[QUERY] Moving from msal to azure identity - how to pass X509Certificate + Privatekey to ClientCertificateCredential? #43676
Labels
Azure.Identity
Client
This issue points to a problem in the data-plane of the library.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
Query/Question
The msal version of
ClientCertificate
accepts aIClientCertificate
, which can be easily constructed in various ways, specifically from aX509Certificate
andPrivateKey
objects, and directly from a certificate's bytes.We want to move to azure identity and
ClientCertificateCredential
, however, it seems that it only accepts two formats - pem and pfx files.So to migrate, we will have to convert these java objects to those file formats.
As far as I can tell, there is no standard way to do so, nor it is provided in the library.
So the question is - how can I create a
ClientCertificateCredential
from anX509Certificate
andPrivateKey
objects, and if it's not possible, can this be added as an additional ctor?Why is this not a Bug or a feature Request?
I'm not sure if this is a missing feature, or I if I'm missing something.
Setup (please complete the following information if applicable):
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: