Avatar of cmdolcet
cmdolcet
Flag for United States of America asked on

Accessing Company website from inside our Network is marked unsafe

Having issues with our company website being viewed inside our network. We switched over to use the SSL (HTTPS) and every time I navigate with inside our company network to the webpage I get the "Not Secure" icon in the browser field and when I click on it it says the certificate is invalid.

What could be causing this?

Any ideas? Could it be a setting inside our IIS ?

Thanks in advance
* iis8Windows Server 2012Networking

Avatar of undefined
Last Comment
Yaku Kakashi

8/22/2022 - Mon
masnrock

What happens when you try to access from outside of the network?

Also, when you try to access the site from inside the network, are you going directly to the internal IP address?
cmdolcet

ASKER
From outside the Network its fine. No issues at all no warning that the site is not safe. I believe the SSL certificate works correctly.

I am typing the web address and not the IP address
ASKER CERTIFIED SOLUTION
masnrock

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
DrDave242

I am typing the web address and not the IP address

Do you use exactly the same URL to access the site from inside and outside?
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
cmdolcet

ASKER
DrDave....

Yes I do
Shaun Vermaak

Please answer
Do a nslookup from inside of the network. Is the result the public or private IP address of the server?
cmdolcet

ASKER
Ok it gives me two IP address - both of which I type directly into the browser with the https:// and it give me both the same result. the alias only has the company address name.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
masnrock

Are the two addresses you get public or private?
cmdolcet

ASKER
those are public IP address sorry.
masnrock

Does doing nslookup from an outside system produce the same results?

Have you viewed the certificate in your browser? Does anything look different than what it should?
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
cmdolcet

ASKER
when I Im looking at it from the outside it give me a different public IP address.
cmdolcet

ASKER
It also has the ssl name in the name field that is different from the one nslookup when I do it inside our network
cmdolcet

ASKER
So it seems that the Name section of the nslookup response and the address are both different when compared to the inside the network versus outside the network.

how can I update the ssl then at this point. Do I need to create a new CSR record inside my IIS?
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
masnrock

Why are you getting different results from the outside? You may want to look into that.
cmdolcet

ASKER
Well the difference is that the SSL certificate from outside the network is the correct SSL certificate and the internal one is the old non-SLL certificate and that is the issue I believe so the question is where do I go to update that?
giltjr

When accessing from the "outside" do you go directly to the IIS server or is there a load balancer that might be offloading SSL.

When you access from inside is the host name on the certificate the same as the host name you are typing in?
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
cmdolcet

ASKER
Accessing from the outside we would go through our IIS server.

No the host names are different.
masnrock

Well the difference is that the SSL certificate from outside the network is the correct SSL certificate and the internal one is the old non-SLL certificate and that is the issue I believe so the question is where do I go to update that?
Remember that you said that the IP addresses you're getting as results are different based on whether you're inside or outside of the network.

Do you use exactly the same URL to access the site from inside and outside?
I know you've answered yes to this. Is there an entry for this site in your internal DNS? If so, what happens if you take it out?
cmdolcet

ASKER
masnrock,

Checking in the DNS yes there is one in the forward lookup Zones. It is piint to a public address that does not match the nslookup in either inside the network or outside the network.

What should I change it to?
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Edmond Hawila

Hi,
You need to use the same hostname both inside and outside.
Get your DNS internally to use the same hostname as the external and point it to the internal IIS ip and let us know how that works.
cmdolcet

ASKER
OK inside the DNS Forward Lookup Zones I changed the Alias (CNAME) to match the Name returned in the outside the network nslookup. Do I need to change the IP address to match?
Edmond Hawila

You can either use the ip you get externally or use the internal ip of your IIS.
Test with either.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
cmdolcet

ASKER
I tried both and neither worked with the new IP address
Edmond Hawila

when you ping the hostname which ip does it show?
if it doesn't show the one you set on your dns open a cmd on your pc and run "ipconfig /flushdns"
see if after that the correct ip is listed and test the website again.
David Favor

Guessing tends to increase time to debug.

Publish your public URL as a starting point.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
David Johnson, CD

You say it is not trusted when on the internal network.. what you need to do is look at the certificate and compare what your browser is getting and what it is expecting.  You may have to add a Subject Alternative Name to your certificate.
Yaku Kakashi

you should check your SSL for you to find what errors may get. may probkem with the SSL...