nginx 报错解决no ssl_certificate” is defined in server listening on SSL port while SSL handshaking

  • A+
所属分类:最佳实践

问题:配置nginx ssl的时候如果遇到同样的问题,可以按照下面的方法解决。
no "ssl_certificate" is defined in server listening on SSL port while SSL handshaking, client: xxx.xxx.xxx.xxx, server: 0.0.0.0:443
解决方案:
需要添加下面的配置:
listen 443 default_server ssl;
例子:
server {

#Some configuration

listen 443 default_server ssl;

#Some configuration

}

原始解决方案:
https://www.tectut.com/2014/10/solved-no-ssl_certificate-is-defined-in-server-listening-on-ssl-port-while-ssl-handshaking-client/

Problem :- If you are facing similar error while configuring ssl on nginx server. below solution would be useful to solve it.
no "ssl_certificate" is defined in server listening on SSL port while SSL handshaking, client: xxx.xxx.xxx.xxx, server: 0.0.0.0:443
Solution:-
you should need to add following to nginx server block
listen 443 default_server ssl;
example:-
server {

#Some configuration

listen 443 default_server ssl;

#Some configuration

}



  • 我的微信
  • 这是我的微信扫一扫
  • weinxin
  • 我的微信公众号
  • 我的微信公众号扫一扫
  • weinxin

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: