question

DeshmukhVijit-2829 avatar image
0 Votes"
DeshmukhVijit-2829 asked madhavpatel commented

how to get the pfx certificate password

Hi,
I have generated the certificate in azure key vault.

While Importing Key Vault Certificate on azure app service getting error "Failed to get App Service Principal"

Also downloaded the same .pfx certificate and while uploading it is asking for the password.

Please let me know from where I can get the password for the certificate

174651-import-keycert.png


azure-webappsazure-key-vault
import-keycert.png (33.3 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Try a single space.

0 Votes 0 ·

Not working .

174851-image.png


0 Votes 0 ·
image.png (41.6 KiB)
SnehaAgrawal-MSFT avatar image
0 Votes"
SnehaAgrawal-MSFT answered SnehaAgrawal-MSFT commented

Thanks for asking question! If I have understood right you are trying to Import a certificate from Key vault, If so then you may want to know that you can import a PKCS12 certificate from Key Vault into App Service as long as it satisfies the below requirements.

175295-add-and-manage-tls-ssl-certificates-azure-app-serv.png





Also, By default, the App Service resource provider doesn’t have access to the Key Vault.

In order to use a Key Vault for a certificate deployment, you need to authorize the resource provider read access to the KeyVault.

Also, check if you are owner of the subscription and not contributor might helps.

Let us know if issue remains.



· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @SnehaAgrawal-MSFT
I created the certificate in Azure Key vault and downloaded same as in pfx format.
But while uploading the same pfx cert in azure app it is asking for the password, What will be that password ?

Also as per the doc tried adding abfa0a7c-a6b6-4736-8310-5855508787cd to the access policy of Azure Key Vault where I have created the Certificate.
But not able to add it on access policy



175475-image.png


0 Votes 0 ·
image.png (83.1 KiB)

Also, when you say by following "the doc tried adding abfa0a7c-a6b6-4736-8310-5855508787cd to the access policy of Azure Key Vault where I have created the Certificate. But not able to add it on access policy" Could you please elaborate what error you are receiving here to help you better on this.

0 Votes 0 ·

175707-image.png



Error while adding in Principal

0 Votes 0 ·
image.png (50.6 KiB)
Show more comments
SnehaAgrawal-MSFT avatar image
1 Vote"
SnehaAgrawal-MSFT answered madhavpatel commented

Thanks for reply! Once you created the certificate in Azure Key vault and downloaded same as in pfx format you need to configure password for .pfx this is required while uploading a pfx, you always need to provide a password.

Please refer the detailed steps mention here to Configure password for .pfx


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

This worked for me. Thank you!

0 Votes 0 ·