【親測解決】SSL_do_handshake() failed SSL: error:1408A0C1/14094418


背景

SSL 證書即將到期,同事申請了新的 SSL 證書替換掉舊證書,並重新加載 Nginx。

 

錯誤

SSL_do_handshake() failed (SSL: error:1408A0C1:SSL routines:ssl3_get_client_hello:no shared cipher) while SSL handshaking

SSL_do_handshake() failed (SSL: error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac) while SSL handshaking

SSL_do_handshake() failed (SSL: error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca:SSL alert number 48) while SSL handshaking

  

解決方案

Google + Baidu 了 N 種方案都無效,最后我把證書 .pem 換成 .crt 成功解決

ssl_certificate "*/*.pem"
  
# 替換為

ssl_certificate "*/*.crt"

  

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM