Certificate Provisioning to Azure Key Vault
Certificate Provisioning to Azure Key Vault lets you push a certificate stored in Akeyless directly into Azure Key Vault, using an existing Azure Target. This is one of the certificate provisioning destinations supported by Akeyless.
Unlike provisioning to a Linux or Windows endpoint, the Azure Target holds only the credentials used to call the Key Vault API. The certificate is stored in Key Vault as a single object that bundles the certificate, private key, and chain. After a successful provisioning, future renewals of the certificate are provisioned automatically.
Every certificate provisioned by Akeyless is tagged with provisioned-by: akeyless in Azure, so you can identify and audit Akeyless-managed certificates.
Prerequisites
- An Akeyless Gateway.
- A certificate item stored in Akeyless that includes its private key. For more information, see Certificate Storage.
- An Azure Target whose service principal has the Key Vault Certificates Officer role on the Key Vault, or, when using access policies, the Get, List, and Import certificate permissions.
Provider-Specific Fields
| Field | Description |
|---|---|
| Certificate Name | The certificate name in Azure Key Vault. |
| Key Vault Name | Mandatory. The Azure Key Vault where the certificate object will be stored. |
Provisioning a Certificate Using the Akeyless CLI
Run the following CLI command to provision a certificate to Azure Key Vault:
akeyless assoc-target-item \
--name <Certificate name> \
--target-name <Azure Target name> \
--gateway-url 'https://<Your-Akeyless-GW-URL>:8000' \
--certificate-name <Certificate name in Key Vault> \
--key-vault-name <Key Vault name>Where:
name: The Certificate item name.target-name: The Azure Target item name to provision the certificate with.gateway-url: Akeyless Gateway Configuration Manager URL (port8000).certificate-name: The name of the certificate in Azure Key Vault.key-vault-name: The name of the Azure Key Vault where the certificate will be stored.
You can find the complete list of additional parameters for this command in the CLI Reference section.
Provisioning a Certificate Using the Akeyless Console
- Log in to the Akeyless Console, go to Items, and find the certificate you wish to provision.
- Click on the Certificate item, click on the Provisioning tab, and then Attach.
- Select an Azure Target.
- Enter the fields:
- Certificate Name: The certificate name in Azure Key Vault.
- Key Vault Name: The Azure Key Vault where the certificate object will be stored.
- Select the Gateway through which the certificate will be provisioned.
- Click Save.
How the Certificate Is Stored in Azure Key Vault
The certificate, private key, and full chain are imported as a single native Key Vault Certificate object. Azure stores the private key securely and exposes the public certificate attributes.
Post-Provisioning Actions
Azure Key Vault doesn't run commands on hosts, so Post Provision Command isn't supported. To reload services or update bindings after a certificate is provisioned or renewed, create an Azure Event Grid subscription on the Key Vault for the Microsoft.KeyVault.CertificateNewVersionCreated event, and trigger an Azure Function or Automation Runbook.
Updated about 1 hour ago
