'How to download SSL certificate that was imported into an Azure Function app?
Last year I uploaded a pfx certificate to a consumption-based Azure Function app. Currently, I don't have access to it anywhere else. Is it possible to download this pfx file in any way? I could not see this option on the portal. Tried FTPing into the app and there was nothing there either.
Solution 1:[1]
One of the workaround is to download it from your KUDU console. Steps to download your certificate.
Add
WEBSITE_LOAD_CERTIFICATESto * from your Application settings.Navigate to your KUDU console from Advanced Tools >> Go >> Debug Console >> Powershell.
Get-ChildItem -Path Cert:\CurrentUser\Mylists the certificate loaded in current user.Then you can export the same to your wwwroot folder using
Get-ChildItem -Path Cert:\currentuser\my | Select-Object -first 1 | Export-Certificate -FilePath D:\home\site\wwwroot\certificate.pfx -ForceNow you can directly download from D:\home\site\wwwroot\certificate.pfx

REFERENCES: Export SSL Certificate from Azure Web App
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | SwethaKandikonda-MT |
