收藏文章 楼主

nginx 配置 ssl 证书:给函数提供的标志无效

版块:linux   类型:普通   作者:小绿叶技术博客   查看:2534   回复:0   获赞:0   时间:2022-02-06 15:28:39


curl -I https://eisc.cn                          # 测试ssl 证书报错

curl: (35) schannel: next InitializeSecurityContext failed: SEC_E_INVALID_TOKEN (0x80090308) - 给函数提供的标志无效

# 位置schannel:下一次初始化安全上下文失败:SEC_E_无效_令牌


#------------- 查看正确配置文件 --------------#


server{

listen 80;

listen 443 ssl;

# 此处需要加 ssl 字符,否则报错:给函数提供的标志无效


server_name www.eisc.cn eisc.cn;


ssl_certificate    /www/www/ssl/eisc/eisc.pem ;

ssl_certificate_key    /www/www/ssl/eisc/eisc.key ;

    #ssl on;

    ssl_session_timeout 5m;

    ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;

    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

    ssl_prefer_server_ciphers on;


location / {

proxy_pass https://eisc.cn;

index index.php index.html;

}

}


提供企业建站服务,免费网防系统,提交信息登录 http://yundun.ddoss.cn 邮箱: proposal@ddoss.cn 
回复列表
默认   热门   正序   倒序

回复:nginx 配置 ssl 证书:给函数提供的标志无效

头像

用户名:

粉丝数:

签名:

资料 关注 好友 消息