从外部网络访问的服务器的自签名证书

发布于 2025-02-03 08:03:51 字数 610 浏览 3 评论 0原文

好吧,我不确定如何正确执行此操作。 因此,我有一个应用程序需要拥有证书并信任连接客户以工作的证书。该应用程序将生成一个自我签名的证书,该证书具有有关我的IP和主机名的信息。

我的客户端位于我所在地区以外的另一个网络中,它通过Southbound Firewall的IP和一个映射的端口连接到我的服务器。

当它连接到我的服务器时,它可能不喜欢我的主机名还不知道,因为它给了我此消息。

这是简化的拓扑:

“

我的问题是,我如何为我的申请颁发有效的证书这个外部客户?我可以添加SYS1解决我的IP的本地主机文件吗? 我必须在外部网络中使用DNS服务器并在那里添加条目吗?不确定他们是否运行DNS服务器。 我的服务器将严格用于安全离线使用,所描述的客户端将是唯一的客户端。

Allright, I'm not sure how to do this properly.
So, I have an application that needs to have a certificate and trust the certificates of connecting clients in order to work. The application will generate a self-signed certificate which has information about my IP and hostname.

My client is in another network outside of my area, and it connects to my server via the Southbound Firewall's IP and a mapped port.

When it connects to my server, it probably doesn't like that my hostname isn't known, because it gives me this message.
Error message

Here is the simplified topology:

Topology

My question is, how can I make a valid certificate for my application for this external client? Could I add to it's local Hosts file that sys1 resolves to my IP?
Must I use a DNS server in the external network and add an entry there? Not sure if they have a DNS server running.
My server will be strictly for secure offline use and the client described will be the only client.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我不是你的备胎 2025-02-10 08:03:51

如果让客户端上的hosts文件将名称sys1指向171.22.150.1,并且证书的主题具有cn = sys1 或主题替代名称dns name = sys1它应该起作用。

If you let a hosts file on the client to point the name sys1 to 171.22.150.1 and the certificate has a subject with CN=sys1 or subject alternative name DNS Name=sys1 it should work.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文