Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
159 views
in Technique[技术] by (71.8m points)

dns - How can I ensure SSL was installed correctly before changing DNSt?

I'm working on a site and have installed an SSL certificate via Plesk. The site is example.com. I'm using hosts.cx to preview the site before I change DNS. However, I think the SSL I'm seeing when I preview the site on hosts.cx is a hosts.cx SSL not mine. My SSL is a Digicert (commercial) SSL.

How can I ensure the SSL was installed properly before I change DNS and send traffic to this new server?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Since the DNS does not resolve the domain to the real IP yet you have to access the server by IP address. But if multiple certificates are setup for the same IP address you somehow need to provide the domain name too.

Probably the simplest way to do this is to make the domain resolve only locally to the new IP address but not globally. This can be done by editing the hosts file on your local machine and provide a mapping there from the domain name to the new IP address. Then you can access the browser on the local machine to access the site as usual, only that it will visit the site on the new IP address and not the publicly known one. Make sure that you actually use the default system resolver, i.e. no DNS over HTTPS or similar though.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.9k users

...