Tutorial: Import a certificate in Azure Primal Vault

Azure Key Vault is a cloud service that provides a secure store for secrets. You can securely store keys, passwords, certificates, and other secrets. Azure key vaults may be created and managed through the Azure portal. In this tutorial, you create a key vault, then utilise it to import a certificate. For more information on Key Vault, review the Overview.

The tutorial shows you how to:

  • Create a key vault.
  • Import a certificate in Key Vault using the portal.
  • Import a certificate in Key Vault using the CLI.
  • Import a certificate in Key Vault using PowerShell.

Before you lot brainstorm, read Primal Vault basic concepts.

If you don't accept an Azure subscription, create a free account before you begin.

Sign in to Azure

Sign in to the Azure portal at https://portal.azure.com.

Create a cardinal vault

Create a key vault using ane of these iii methods:

  • Create a key vault using the Azure portal
  • Create a fundamental vault using the Azure CLI
  • Create a key vault using Azure PowerShell

Import a certificate to your key vault

To import a certificate to the vault, you need to take a PEM or PFX certificate file to be on disk. If the certificate is in PEM format, the PEM file must contain the fundamental also as x509 certificates. This performance requires the certificates/import permission.

Important

In Azure Key Vault, supported certificate formats are PFX and PEM.

  • .pem file format contains i or more X509 certificate files.
  • .pfx file format is an archive file format for storing several cryptographic objects in a single file i.e. server certificate (issued for your domain), a matching private key, and may optionally include an intermediate CA.

In this case, we will create a certificate called ExampleCertificate, or import a certificate called ExampleCertificate with a path of **/path/to/cert.pem". You tin can import a document with the Azure portal, Azure CLI, or Azure PowerShell.

  • Azure portal
  • Azure CLI
  • Azure PowerShell
  1. On the Key Vault backdrop pages, select Certificates.
  2. Click on Generate/Import.
  3. On the Create a certificate screen cull the following values:
    • Method of Document Creation: Import.
    • Document Name: ExampleCertificate.
    • Upload Certificate File: select the certificate file from disk
    • Password : If you are uploading a password protected document file, provide that password here. Otherwise, leave it bare. In one case the certificate file is successfully imported, key vault will remove that password.
  4. Click Create.

Importing a certificate through the Azure portal

When importing a document, Azure Primal vault volition automatically populate certificate parameters (i.e. validity catamenia, Issuer name, activation date etc.).

Once you receive the message that the certificate has been successfully imported, you may click on it on the list to view its properties.

Properties of a newly imported certificate in the Azure portal

Now, you have created a Key vault, imported a certificate and viewed a certificate'southward backdrop.

Clean upwards resources

Other Key Vault quickstarts and tutorials build upon this quickstart. If you programme to continue on to work with subsequent quickstarts and tutorials, you may wish to leave these resources in place. When no longer needed, delete the resource group, which deletes the Key Vault and related resource. To delete the resources group through the portal:

  1. Enter the name of your resource group in the Search box at the height of the portal. When you come across the resources group used in this quickstart in the search results, select it.
  2. Select Delete resources group.
  3. In the TYPE THE RESOURCE GROUP Proper noun: box type in the proper name of the resource grouping and select Delete.

Next steps

In this tutorial, yous created a Key Vault and imported a certificate in it. To larn more about Key Vault and how to integrate it with your applications, continue on to the articles below.

  • Read more near Managing certificate cosmos in Azure Primal Vault
  • Encounter examples of Importing Certificates Using REST APIs
  • Review the Key Vault security overview