Search code examples
c#visual-studioiis-express

How to change SSL certificate from localhost to something else in Visual Studio


I changed my Visual Studio project url from https://localhost:port_number to https://ip_address:port_number. I did create a self-signed certificate where DNS name is actual IP address. How do I make my project to use my new self-signed certificate instead of self sighed certificate with DNS name locahost.


Solution

  • I finally found the solution. Here is the link to the blog where, basically, spells out how it is done. https://wp.sjkp.dk/custom-domains-and-ssl-bindings-with-iis-express/