Search code examples
asp.netiis-8lan

host https website using IIS across local area network


I have a website hosted on IIS which can accessed across the Local Area Network by using the IP address of the Server computer. But I can only access the website on client computers using http, when I use https I get security alert on the browsers as shown in the image below,

enter image description here

I even got a self signed certificate on the server computer and in the server computer I can use https without any security alert but I can't do the same on client computers on LAN. Is it possible to achieve that? If so please let me know. Thanks in advance :)


Solution

  • Your certificate is not trusted by other computers, because they don't recognize you as a trusted authority, the solution is easy, even if you ask google it will respond with steps to do this (for chrome in this example):

    Go to Chrome Settings.
    Click on "advanced settings"
    Under HTTPS/SSL click to "Manage Certificates"
    Go to "Trusted Root Certificate Authorities"
    Click to "Import"
    There will be a pop-up window that will ask you if you want to install this certificate. Click "yes".

    Better idea maybe, instead of making them trust your self-signed certificate would be to generate a certificate by some verified authority.

    I have recently generated a free certificate by the https://letsencrypt.org/ portal (and no, I do not have any interest in promoting it) except it's free and it simply works fine.