Reputation: 3009
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.
Upvotes: 1
Views: 1681
Reputation: 8234
One of the workaround is to download it from your KUDU console. Steps to download your certificate.
Add WEBSITE_LOAD_CERTIFICATES
to * from your Application settings.
Navigate to your KUDU console from Advanced Tools >> Go >> Debug Console >> Powershell.
Get-ChildItem -Path Cert:\CurrentUser\My
lists 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 -Force
Now you can directly download from D:\home\site\wwwroot\certificate.pfx
REFERENCES: Export SSL Certificate from Azure Web App
Upvotes: 1