nginx NSS error -12263 (SSL_ERROR_RX_RECORD_TOO_LONG) 处理

2021/8/8 7:10:13

本文主要是介绍nginx NSS error -12263 (SSL_ERROR_RX_RECORD_TOO_LONG) 处理,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

今天遇到nginx NSS error -12263 (SSL_ERROR_RX_RECORD_TOO_LONG) 处理,简单记录一下:

  • 端口要配置为支持ssl
  • 不能同时ssl on及 listen port ssl

可以参考https://stackoverflow.com/questions/20262186/error-code-ssl-error-rx-record-too-long-for-https-in-nginx-on-ruby-on-rails-app

You can’t have both listen 443 ssl; and ssl on;, remove the ssl on; line and restart nginx.

# HTTPS server
#
server {
    listen 443 ssl;
server_name welcome.com;

root html;
index index.html index.htm;

ssl on;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;

ssl_session_timeout 5m;
}



这篇关于nginx NSS error -12263 (SSL_ERROR_RX_RECORD_TOO_LONG) 处理的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程