如何测试 SSL 在开发人员上是否正确设置和配置?
我正在将站点从一台服务器移动到一台新服务器。目前新服务器是开发站点,通过IP访问。
我已在新服务器上复制并设置了 SSL,但在我指向域之前,似乎无法测试 SSL 是否已正确安装。
在我指向域之前,有没有办法可以测试 SSL 设置和配置是否正确?
理想情况下,我希望启动该网站并知道一切正常!
谢谢
I am moving a site from one server to a new server. Currently the new server is the development site and is accessed via IP.
I have copied and set up the SSL on the new server but there doesn't seem to be anyway of testing that the SSL is properly installed until I point the domain.
Is there a way I can test that the SSL it setup and configured correctly before I point the domain?
Ideally I'd like to launch the site and know that everything is working correctly!
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以尝试将主机的新 IP 地址添加到
/etc/hosts
(或 Windows 存储hosts
文件的任何位置;查看C:\Windows\ System32\hosts
作为起点)客户端上的文件。这就像为一台机器更新 DNS 一样。完成测试后,不要忘记删除该条目。
You could try adding the new IP address for the host to your
/etc/hosts
(or wherever Windows stores thehosts
file; look inC:\Windows\System32\hosts
as a starting point) file on your client. It's just like updating DNS for a single machine.Don't forget to remove the entry after you're done testing.
当您在主机文件中设置该条目时,它应该具有以下形式:
并且当您删除该条目时,您可以简单地在行开头用“#”将其注释掉
When you set up that entry in the hosts file it should have the form:
and when you remove the entry you can simply comment it out with a "#" at the beginning of the line