<p>I open Visual Studio 2019 and create a new project (Container application for kubernetes).  I tick enable https support and then when I start debugging in Visual Studio; I can browse to the https address.  </p>

<p>I then try to go one step further.  I have Kubernetes enabled in Docker Desktop on my development PC and follow these instructions (after opening all the .yaml files and changing all references of https to http and all references of port 80 to port 443):</p>

<pre><code>1) cd C:\mvcsecure
2) docker build -t mvcsecure:stable -f c:\mvcsecure\mvcsecure\Dockerfile .
3) cd c:\mvcsecure\mvcsecure\charts
4) helm install mvcsecure ./mvcsecure/
5) kubectl expose deployment mvcsecure --type=NodePort --name=mvcsecure-service
6) kubectl get service
mvcsecure-service   NodePort    10.96.128.133    &lt;none&gt;        443:31577/TCP   6s
7) I then try to browse to: https://localhost:31577 and it says: 
Cannot securely connect to this page
</code></pre>

<p><a href="https://i.stack.imgur.com/sWGRS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sWGRS.png" alt="enter image description here"></a></p>

<p>Notice there is no option to trust a certificate or anything.  </p>

<p>What changes must I make to the default Helm charts created by Visual Studio to get https working on my basic service? I cannot find any documentation or examples online.  It would be great to see an example of a https service (mvc or api) deployed to Kubernetes using Helm.  I could post the .yaml file code if needed,, however there is a lot of it.</p>

<p>I am wanting to use kubernetes cluster root certificate as described here:  <a href="https://stackoverflow.com/questions/44708272/how-to-access-a-kubernetes-service-through-https">How to access a kubernetes service through https?</a></p>

<p>I have checked that all TLS and SSL options are ticked in Internet Options.</p>

w0051977
<p>In case when Your application accepts <code>HTTP</code> traffic and You want to make is secure (<code>HTTPS</code>); I suggest to try <a href="https://en.wikipedia.org/wiki/TLS_termination_proxy" rel="nofollow noreferrer">TLS termination</a> with kubernetes ingress.</p>

<p>Kubernetes <a href="https://kubernetes.io/docs/concepts/services-networking/ingress/#tls" rel="nofollow noreferrer">documentation</a> has great explanation how to configure TLS termination. With ingress object You can make Your <code>HTTP</code> service be accessible via <code>HTTPS</code> from outside of the cluster. </p>

<p>This means that connections made to service will be made in <code>HTTPS</code> and get decrypted to <code>HTTP</code> once internally in Your cluster before reaching the service.</p>

<p>Hope it helps.</p>
