I would like to authenticate with MSAL4J and the certificate stored in Azure Key Vault (AKV). The certificate is a self-signed Azure Key Vault certificate.
I could find an example based on a certificate and key stored locally (file system) but not a certificate created and stored in AKV. How to use the certificate, key, and secret objects obtained from azure-security-keyvault-*
with MSAL4J?
- The key from
azure-security-keyvault-keys
iscom.azure.security.keyvault.keys.models.KeyVaultKey
, but MSAL4J expectsjava.security.PrivateKey
. - How to apply the secret obtained from
azure-security-keyvault-secrets
to decrypt the private key?