2020年4月24日_openresty不支持TLS1.2解決
- 現象就是谷歌瀏覽器訪問網站會提示不安全,雖然證書是有效的。
- 原因:
- 網站引用了不安全的因素,外鏈等
- TLS安全協議太舊了,該更新了
- 解決:
-
首先源碼編譯openssl,參考:https://blog.csdn.net/LostSpeed/article/details/69492531
-
再重新編譯openresty,
命令:
./configure --with-openssl=/root/openssl-1.0.1t/ --with-openssl-opt="enable-tls1_3 enable-ec_nistp_64_gcc_128" --with-pcre
-
nginx重啟(不是reload)
-