cloudflare 使用 ssl 的问题求助
源服务器创建证书,把证书下载下来,放到 vps 上,配置 nginx,提示找不到证书。
server {
listen 443;
server_name domain.com;
root /var/www/domain.com;
ssl_certificate /etc/ssl/domain.com/domain.com.crt;
ssl_certificate_key /etc/ssl/domain.com/domain.com.private.key;
}
提示如下:
[email protected]:~# nginx -t
nginx: [warn] “ssl_stapling” ignored, issuer certificate not found for certificate “/etc/ssl/domain.com/domain.com.crt”
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
访问域名,出现 526 错误,说是源服务器没有一个有效的证书。
谷歌了一下,说是 CF 的 ssl 只能给自家的 cnd 用。
我想问的是:我的 vps 不安装 ssl 证书行不行,不安装证书,访问域名报错,说是无效的证书。
一定要在 vps 安装 let’s 的 ssl 证书吗?