azure-keyvault

A more secure way to use key vault

时光毁灭记忆、已成空白 提交于 2020-01-03 15:36:50
问题 Usually when you use key vault to encrypt and decrypt data you have to keep your AD registered app's (that has the authorization to access key vault) ClientID and ClientSecret in plain text somewhere. This seems like a security problem if someone steals the the ClientID and Secret anyone can claim they are the registered app. Is there or can there be a more secure approach? 回答1: You can use a certificate to authenticate instead of a secret. There are three things you need to do for this

A more secure way to use key vault

牧云@^-^@ 提交于 2020-01-03 15:36:38
问题 Usually when you use key vault to encrypt and decrypt data you have to keep your AD registered app's (that has the authorization to access key vault) ClientID and ClientSecret in plain text somewhere. This seems like a security problem if someone steals the the ClientID and Secret anyone can claim they are the registered app. Is there or can there be a more secure approach? 回答1: You can use a certificate to authenticate instead of a secret. There are three things you need to do for this

How to store Public Certiticate (.cer file) in Azure Key Vault

[亡魂溺海] 提交于 2020-01-02 08:54:09
问题 How I can upload or store public key (.cer) file in azure keyvault. From the keyvault panel it gives error when I tried to to upload any .cer file where It works for .pfx file. 回答1: You should consider if Key Vault is the appropriate solution for your scenario. The public key (by nature) is not confidential data, you don't need a secure place to store it. You can use a general purpose storage service for it. If you still need to use Key Vault, you can store it as a secret. Key Vault secrets

how to get the latest secret version value from azure key vault in one rest api call

我的梦境 提交于 2020-01-02 03:44:09
问题 I can get the secret from azure key vault in rest api if I already know the version number using this endpoint: https://my-key-vault-dev.vault.azure.net/secrets/MyTestSecret/13f8347b8518483f8236670197497c93?api-version=2016-10-01 But what if I don't know what the latest version number is? I guess I could get the latest version number query list first: GET {vaultBaseUrl}/secrets/{secret-name}/versions?api-version=2016-10-01 Is it possible to do it all in one query? For example, something like

Azure KeyVault - Sign JWT Token

a 夏天 提交于 2020-01-01 06:43:06
问题 I began using Azure Keyvault to store private keys for my application. I have a use case where I need to sign a JWT token with an RSA private key. When I had the private key in my application memory, it was easy, I would just do that var token = new JwtSecurityToken( issuer, ..., claims, ..., ..., signingCredentials_PrivateKey); Now that I began to use Azure Keyvault, I want to see if it's possible to sign JWT tokens via the KeyVaultClient.SignAsync method. Something along the lines of

Getting pem file uploaded in Azure Key Vault Keys

百般思念 提交于 2019-12-31 07:31:50
问题 I have uploaded a pem file to Azure Key Vault Keys via azure portal and tried below function to get the data using "azure-keyvault": "^3.0.0-preview", client.getKey(vaultUri, keyName, keyVersion, {maxresults : 10}, function(err, result) { if (err) throw err; console.log(result,'-----------key-'); }) result { key: { kid: 'https://test.vault.azure.net/keys/test/1123123123lksldkf', kty: 'RSA', keyOps: [ 'sign', 'verify', 'wrapKey', 'unwrapKey', 'encrypt', 'decrypt' ], n: <Buffer ... >, e:

Create Keys in Azure Key Vault by using API

假装没事ソ 提交于 2019-12-31 04:38:07
问题 I was created azure key vault through in the specified subscription. Followed this article, https://docs.microsoft.com/en-us/rest/api/keyvault/keyvaultpreview/vaults/createorupdate#examples And when the api called, azure vault created successfully. Now I also need to create a key for the created Key vault. Is it possible to create the key when the azure key vault creation? 回答1: Is it possible to create the key when the azure key vault creation? As juunas said, you need to make a separate call

Issue with KeyVault reference in ARM template

流过昼夜 提交于 2019-12-31 02:54:07
问题 I am trying to create a master key vault, which will contain all certificates to authenticate as a certain user. I have 2 service principals => One for my app, One for deployment. The idea is that the deploy service principal gets access to the Key Vault and adds the certificate located there to the Store of the web applications. I have created the service principal and I have given him all permissions on the key vault. Also I have enabled access secrets in ARM templates for that key vault.

Access Azure Key Vault stored secret using application not deployed in Azure

我是研究僧i 提交于 2019-12-30 06:29:21
问题 Good Day! I've read in most articles that deploying an application in Azure is needed such that an application will be able programmatically access the secrets stored in the Azure Key Vault. Is there a way to not deploy the application in azure and have it still be able to access the Azure Key Vault to fetch the secrets either by using client id and client secret or certificates? Thanks! 回答1: There's no need to run your application in Azure for you to use Azure KeyVault. Your application can

I have many B2B and B2C Azure Active Directory instances. How do I assign one to KeyVault?

删除回忆录丶 提交于 2019-12-25 07:34:50
问题 I used the following powershell commands to create an Azure Key Vault: //https://docs.microsoft.com/en-us/azure/key-vault/key-vault-get-started Login-AzureRmAccount –Environment (Get-AzureRmEnvironment –Name AzureCloud) set-azureRMContext -SubscriptionId ( Get-AzureRmSubscription -SubscriptionName "Visual Studio Enterprise").SubscriptionId // Register-AzureRmResourceProvider -ProviderNamespace "Microsoft.KeyVault" (if error occurs in subscription) New-AzureRmResourceGroup –Name "VaVaultRG"