Skip to content

Instantly share code, notes, and snippets.

@darrenjrobinson
Created September 14, 2017 04:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darrenjrobinson/d74f68afcfac6ae29eaef4422adcd803 to your computer and use it in GitHub Desktop.
Save darrenjrobinson/d74f68afcfac6ae29eaef4422adcd803 to your computer and use it in GitHub Desktop.
Add a certificate to the Azure Key Vault
# Get the certficate from the local machine that will be put into the Azure Key Vault
Set-AzureCertificate -Path C:\temp\Certificate\AADselfsignedcert.pfx -Name "AADAppCert" -Password ($pwd = Read-Host -AsSecureString) -VaultName $name -StorageAccountName $name
$AzVaultCert = Get-AzureCertificate -Name "AADAppCert" -VaultName $name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment