2 回答

TA貢獻1826條經驗 獲得超6個贊
問題已經解決了。
我使用 laravel 并且有一個黑盒,它是 route() 輔助函數(shù)它根據服務器配置設置 url http 或 https,生產服務器設置為 https
這就是它導致錯誤的原因。

TA貢獻1786條經驗 獲得超13個贊
僅供參考此錯誤,這可能對某些人有所幫助。我在帶有 apache 服務器的 ubuntu 機器上遇到了類似的問題,我通過使用鏈接創(chuàng)建自簽名證書解決了這個問題
< HTTP/1.1 200 Connected
<
* Proxy replied OK to CONNECT request
* found 127 certificates in /etc/ssl/certs/ca-certificates.crt
* found 508 certificates in /etc/ssl/certs
* ALPN, offering http/1.1
* gnutls_handshake() failed: An unexpected TLS packet was received.
* Closing connection 0
curl: (35) gnutls_handshake() failed: An unexpected TLS packet was received.
如果您正在使用 curl 并面臨以下錯誤,即使在創(chuàng)建證書并啟用它之后,您也可以--cacert <certificate name>在 curl 命令中使用。
錯誤 : curl: (60) server certificate verification failed.
嘗試這個 : curl --cacert <certificate_name>.crt https://<your IP>:<Port>
- 2 回答
- 0 關注
- 555 瀏覽
添加回答
舉報