Azure Key Vault Certificates Client Library Python Samples
Prerequisites
You must have an Azure subscription and an Azure Key Vault to run these samples. You can create a key vault with the Azure CLI.
Setup
To run these samples, first install the Key Vault Certificates and Azure Identity libraries:
commandline
pip install azure-keyvault-certificates azure-identity
Azure Identity is used for authenticating Key Vault clients. These samples use the DefaultAzureCredential, but any credential from the library can be used with Key Vault clients.
Contents
File | Description |
---|---|
hello_world.py (async version) | create/get/update/delete certificates |
backup_restore_operations.py (async version) | back up and recover certificates |
import_certificate.py (async version) | import PKCS#12 (PFX) and PEM-formatted certificates into Key Vault |
list_operations.py (async version) | list certificates |
recover_purge_operations.py (async version) | recover and purge certificates |
issuers.py (async version) | manage certificate issuers |
contacts.py (async version) | manage certificate contacts |
parse_certificate.py (async version) | extract a certificate's private key |