gpt4 book ai didi

在服务器端安装 SSL 证书

转载 作者:太空宇宙 更新时间:2023-11-03 15:14:19 32 4
gpt4 key购买 nike

我正在开发一个移动应用程序。我是网络开发的新手。

我在 GoDaddy 上有 DNS(比如 app.test.com)并且有一个只有 IP 地址的服务器(比如 31.254.42.73)。我的请求从 app.test.com 转发到 IP 地址。我已经购买了一个 CN 为 app.test.com 的 SSL 证书,在服务器端我在 Spring Boot 上运行了一个 Jetty。

SSL 是在服务器端导入的,但是我收到以下错误:

This site's certificate has expired or has been issued for a different website's address.
This problem may indicate an attempt to intercept the data between you and remote server.
Please check whether the URL in the address bar is correct.

Error code 107 (net::ERR_SSL_PROTOCOL_ERROR)

知道如何正确安装 SSL 证书吗?

最佳答案

如果您的证书分配给 app.test.com,则无法使其适用于 31.254.42.73

要么避免将用户重定向到 31.254.42.73(推荐),要么为 31.254.42.73 购买新证书(据我所知,并非所有证书颁发机构都允许这样做)。

关于在服务器端安装 SSL 证书,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32309576/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com