Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUERY] Moving from msal to azure identity - how to pass X509Certificate + Privatekey to ClientCertificateCredential? #43676

Open
2 tasks done
AsafMah opened this issue Jan 2, 2025 · 2 comments
Assignees
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

Comments

@AsafMah
Copy link

AsafMah commented Jan 2, 2025

Query/Question

The msal version of ClientCertificate accepts a IClientCertificate, which can be easily constructed in various ways, specifically from a X509Certificate and PrivateKey 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 an X509Certificate and PrivateKey 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):

  • OS: [e.g. iOS] Windows
  • IDE: [e.g. IntelliJ] Intellij
  • Library/Libraries: com.azure:azure-identity:.1.13.0

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

  • Query Added
  • Setup information Added
@github-actions github-actions bot added 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 labels Jan 2, 2025
Copy link

github-actions bot commented Jan 2, 2025

@billwert @g2vinay

Copy link

github-actions bot commented Jan 2, 2025

Thank you for your feedback. Tagging and routing to the team member best able to assist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
Status: Untriaged
Development

No branches or pull requests

2 participants