I have followed this article to setup an OWIN self hosted Web API within an Azure service fabric stateless service.
I also found this article which describes setting up an HTTPS endpoint within an Azure service fabric service.
...
<Certificates>
<EndpointCertificate Name="TestCert1" X509FindValue="FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF F0" X509StoreName="MY" />
</Certificates>
...
How do I configure the SSL certificate for my WebAPI service within service fabric? When I access my service fabric cluster in the Azure portal, the "Certificate" textboxes are greyed out.
In other Azure services their is typically a area to upload certificates which can then be referenced by the application.
Do I need to manually include my certificate in the service fabric package and install it into the certificate store before it can be referenced?
In addition does azure provide a HTTPS cert for *.cloudapp.azure.com that can be used during development?
Yes, when you publish to Azure Web Services, IIS is used to host your application. As you said, it acts as a reverse proxy to your application, which is running Kestrel HTTP server.
Azure Service Fabric is a Platform as a Service (PaaS) offering designed to facilitate the development, deployment and management of highly scalable and customizable applications for the Microsoft Azure cloud platform. Fabric, in this context, is a synonym for framework.
To secure an OWIN Self-Hosted API in SF with SSL, you can follow the different scripts and example config I've compiled:
https://gist.github.com/andersosthus/c483eaf8630219c789de
The basic flow goes like this:
Step 1 & 2 can be skipped, but then you need to log in to each VM and install the certificate manually.
For VMSS:
To install certificates from KeyVault onto a VMSS with ARM, do the following:
In your VMSS template, under the OSProfile
section, there is section called secrets
. Here you can configure the sourcevault
and add certificates to be installed.
This works like all other ARM templates. You can add a certificate to this list at a later point and redeploy the template. The certificate will then be installed on your VMSS.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With