We have an application running on a VM in our Service Fabric service in Azure.
To communicate with one of our partner's Rest APIs, we need to use a client certificate. (_restClient.ClientCertificate = ...
)
So my first attempt was to add the Certificate (pfx, including a private key) to our Azure Key Vault. And then the application receives it from the Key Vault. However ,I don't seem to be getting the private part of the certificate, which is needed to sign the package. This question, Is it possible to get the private key out of Azure Key Vault Keys?, also seems to try the same thing without success.
I also found this article: Use an SSL certificate in your application code in Azure App Service. However, that only seems to handle the case when you run a Web App from an App Service. But since I don't use that, I don't understand if this can be applied in my case.
So how do I get ahold of the ClientCertificate from Azure that I need to use in my RestRequest?