背景
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"