I have an application, deployed in Azure Service Fabric. The application connects to external web service which has an untrusted SSL certificate and fails. I solved problem by implementing custom cert validation logic in "ServerCertificateCustomValidationCallback" method of HttpClient, however this is not an ideal solution.
How to install external SSL certificate into the trusted store on VMs in VMSS, so that any app in ASF can consume external web services without additional efforts?
Additional notes
- Certificate contains no private key, so it cannot be imported into Azure key vault and used in ARM template (or I didn't find a way how to achieve this)
- Certificate cannot be installed manually via RD, because this doesn't support autoscaling