locked
How To Remove Not secure From Google Chrome RRS feed

  • Question

  • User-807418713 posted

    Hello

    I have installed my app in IIS

    when i open in google chrome it showing like this

    Any best option to remove this on page load using asp.net c#

    Thanks

    Monday, April 29, 2019 6:44 PM

Answers

  • User-1174608757 posted

    Hi Gopi. MCA,

    According to your description, this message means your domain has no trusted certificate when you enter https request to your website.So you should add a self certificate and then put it in Manage computer  certificate module in your computer.Here are the steps, I hope it could help you.

    1. In your local machine, you should firstly  use powershell  and run as a administrator to create a self certificate which issure name is same as you domain , you could enter command as below:
    New-SelfSignedCertificate -DnsName "www.site2.com" -CertStoreLocation "cert:\LocalMachine\My"

    note: site2 is the name of your domain

    You could find it in iis server certificate module as below:

    2.add https bindings to your site, make sure domain same as that in your self certificate.

    3. in Manage computer  certificate module of your local machine ,use ctrl+ c copy the self certificate to trusted Root Certification tag, you could see:

    Best Regards

    Wei

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, April 30, 2019 3:29 AM

All replies

  • User475983607 posted

    Add a certificate to IIS and configure the site to use SSL.

    https://weblogs.asp.net/scottgu/tip-trick-enabling-ssl-on-iis7-using-self-signed-certificates

    Purchase a certificate if you want Chrome to trust the certificate.

    Monday, April 29, 2019 7:01 PM
  • User-1174608757 posted

    Hi Gopi. MCA,

    According to your description, this message means your domain has no trusted certificate when you enter https request to your website.So you should add a self certificate and then put it in Manage computer  certificate module in your computer.Here are the steps, I hope it could help you.

    1. In your local machine, you should firstly  use powershell  and run as a administrator to create a self certificate which issure name is same as you domain , you could enter command as below:
    New-SelfSignedCertificate -DnsName "www.site2.com" -CertStoreLocation "cert:\LocalMachine\My"

    note: site2 is the name of your domain

    You could find it in iis server certificate module as below:

    2.add https bindings to your site, make sure domain same as that in your self certificate.

    3. in Manage computer  certificate module of your local machine ,use ctrl+ c copy the self certificate to trusted Root Certification tag, you could see:

    Best Regards

    Wei

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, April 30, 2019 3:29 AM
  • User-807418713 posted

    Hello

    Thanks For Your Code

    If website is in our local computer IIS windows 10 version then the above work..?

    For example Our page will look like this in address bar our local LAN IP 192.XXX.XXX.XXX/app/welcome.aspx  the above works?

    Thanks

    Tuesday, April 30, 2019 6:21 PM
  • User409696431 posted

    Is this website a public site, or an internal site for your company?

    Chrome warns whenever the site is not a https:// site with a trusted certificate.  Any site that can only be reached via http:// or which can be reached by https:// but where the certificate is not trusted (self-signed certificates generally are not), will show that warning.

    For a public site, you probably don't want that warning, since it might concern visitors,.  In that case you would get a trusted SSL certificate and redirect requests to https://

    If this is an internal company site, only, it's up to you to decide if that warning matters.  Most certificate providers do not do it by IP, but by domain.

    Tuesday, April 30, 2019 7:43 PM
  • User-1174608757 posted

    Hi GopiMCA,

    According to your description, you should realize the reason for showing 'No secure' Message.It is because you have asked https request in browser and there is no confident certificate for https request. So, what I do just put a self certificate for you domain to trust certificate of your machine.So it could only work for your local machine because other machines doesn't have trusted certificate for your domain.

    Then for your next question,yes it worked, you only need to put your domain 192.XXX.XXX.XXX to make a self certificate and then put it in the trust folder. You could see as below:

    Best Regards

    Wei 

    Wednesday, May 1, 2019 1:48 AM