简体   繁体   English

我的服务器(在node.js上)具有可变IP地址的证书SSL

[英]Certificate SSL of my server (on node.js) with variable IP address

I have created an HTTPS server with node.js. 我已经使用node.js创建了一个HTTPS服务器。 Its IP address is variable, because host machine is behind a NAT and server Ip address isn't constant. 它的IP地址是可变的,因为主机位于NAT后面并且服务器IP地址不是恒定的。 The problem is that every time I try to connect to https://address_IP_variable , chrome doesn't recognise trustable because the server certificate does not match the url. 问题在于,每次我尝试连接到https://address_IP_variable ,chrome都无法识别可信任状态,因为服务器证书与网址不匹配。 I have tried to add ssl certificate to "Trusted Root Certification Authorities" but it isn't enough. 我试图将ssl证书添加到“受信任的根证书颁发机构”,但这还不够。 I would like to change color https from red to green. 我想将https的颜色从红色更改为绿色。 Can anyone help me? 谁能帮我?

The only way to ensure that the browser bar is green is for the common name in the certificate ( ie the domain name ) to be the same as the one the browser is reaching, and the certificate cannot be self-signed ( it must come from a certificate authority ). 确保浏览器栏为绿色的唯一方法是使证书中的通用名称(即域名)与浏览器所到达的名称相同,并且证书不能自签名(必须来自认证中心)。

Given your rotating IP address, I'm guessing that you're trying to test this in a non-production environment. 给定您的旋转IP地址,我猜您正在尝试在非生产环境中对此进行测试。 If that's the case, I wouldn't worry about implementing a green bar as much as having SSL implemented, period. 如果是这样的话,我将不必担心像实施SSL期间那样实施绿条。 Before you roll into production, you can sort out the green bar issue. 在投入生产之前,您可以解决绿条问题。 :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM