HTTPS communication in ServiceFabric Local Cluster

Viewed 1375

Here's my setup

an IdentityServer 4 as a stateless reliable ASP.NET Core service. a WebAPI as a reliable ASP.NET Core service.

using them with a JS client, it is now working with HTTP. The problem is with HTTPS. The WebAPI needs to request the openID config via htttps [is4URL].well-known/openid-configuration. I'm getting this error

System.InvalidOperationException: IDX10803: Unable to obtain configuration from: 'https://localhost:9999/.well-known/openid-configuration'. ---> System.IO.IOException: IDX10804: Unable to retrieve document from: 'https://localhost:9999/.well-known/openid-configuration'. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.

can anybody help me to make this work in localhost with the SF Local Cluster Manager?

Thanks

1 Answers
Related