如何在更改DNSt之前确保SSL已正确安装? [英] How can I ensure SSL was installed correctly before changing DNSt?

查看:47
本文介绍了如何在更改DNSt之前确保SSL已正确安装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个网站上工作,并且已经通过Plesk安装了SSL证书.该网站为example.com.在更改DNS之前,我正在使用hosts.cx预览站点.但是,我认为在hosts.cx上预览站点时看到的SSL是hosts.cx SSL,不是我的.我的SSL是Digicert(商业)SSL.

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.

在更改DNS并将流量发送到此新服务器之前,如何确保SSL已正确安装?

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

推荐答案

由于DNS不能将域解析为真实IP,但是您必须通过IP地址访问服务器.但是,如果为同一IP地址设置了多个证书,则您还需要以某种方式提供域名.

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.

执行此操作的最简单方法可能是使域仅本地解析为新IP地址,而不是全局解析.这可以通过编辑在本地计算机上托管文件,并在其中提供从域名到新IP地址的映射.然后,您可以像往常一样访问本地计算机上的浏览器来访问该站点,只是它会使用新的IP地址而不是公开的IP地址访问该站点.确保您确实使用了默认的系统解析器,即,虽然没有通过HTTPS的DNS或类似的域名.

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.

这篇关于如何在更改DNSt之前确保SSL已正确安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆