当我登录到django网站的管理页面时,我在nginx错误日志中得到了跟踪。
2022/01/28 17:04:50 [crit] 22184#22184: *263 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 107.178.232.184, server: 0.0.0.0:443
2022/01/28 17:08:12 [crit] 22184#22184: *277 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 107.178.239.221, server: 0.0.0.0:443
2022/01/28 17:08:30 [crit] 22184#22184: *288 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 107.178.232.251, server: 0.0.0.0:443
2022/01/28 17:10:09 [crit] 22184#22184: *302 SSL_do_handshake() failed (SSL: error:14201044:SSL routines:tls_choose_sigalg:internal error) while SSL handshaking, client: 45.56.98.215, server: 0.0.0.0:443
2022/01/28 17:28:03 [crit] 22184#22184: *344 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 165.227.140.0, server: 0.0.0.0:443一个可能的原因是,当我丢失了.env文件时,我没有在制作django项目时使用的秘密密钥。我使用this answer生成一个秘密密钥并存储在.env文件中。这是原因,还是有其他原因?
发布于 2022-01-28 19:52:30
秘密钥匙没有问题。我在生产中短暂地保留了Debug=True,以找出出了什么问题,并且得到了错误。
AssertionError: database connection isn't set to UTC这是因为psycopg2 2.9>与Django 2.2.x不相容。从这个answer中发现并修复了这个问题。
https://stackoverflow.com/questions/70898513
复制相似问题