0

Using Fabric 2 stateless services with Kestrel 3.1

Have a problem exposing a HTTPS endpoint. A primary certificate is defined on the cluster (Security section). This certificate (primary) is accessible to the nodes (i.e. via X509Store find operations on the thumbprint or subject) automatically by Service Fabric. When configuring kestrel for a particular endpoint the certificate is used by the UseHttps method on any Ipv6 address (i.e. Ipv6Any). In the Application Manifest the access to the certificate's private key is granted (see article) with an endpoint policy. Here is example code on gist. The cluster's load balanser exposes the 443 HTTPS endpoint via the 8443 port (similar to the setup in this tutorial).

Despite the above configuration when navigating to the application the response is that the web page is either down or has been moved plus a ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY error.

The service according to the logging sent to Insights starts fine using the primary certificate:

Hosting environment: Production
...
Now listening on: https://[::]:443

Anybody else get as similar setup working?

Matthew Campbell
  • 1,864
  • 3
  • 24
  • 51

1 Answers1

0

Turns out I had set the protocol to HTTP2 rather than HTTP1.

Matthew Campbell
  • 1,864
  • 3
  • 24
  • 51