2016-08-15 103 views
2

我使用的是磁條模塊爲Python(通過pip install stripe),我收到以下錯誤:如何升級條紋爲TLS 1.2

AuthenticationError: Request req_90h0QUDIec0Ej7: Stripe no longer 
supports API requests made with TLS 1.0. Please initiate HTTPS 
connections with TLS 1.2 or later. You can learn more about this at 
https://stripe.com/blog/upgrading-tls. 

繼條紋的文檔,他們說你應該重新安裝Python (通過brew)並升級到Stripe庫的最新版本(截至撰寫本文時爲1.37.0)。我已經完成了這兩個步驟,但沒有什麼區別。

我還應該做什麼?

回答

0

你可以試試這個 您可以在https://www.ssllabs.com/ssltest/

檢查TLS verison您的服務器上運行,如果你的結果顯示TLS 1.2版爲NO,那麼你需要更新它按照正在運行的服務器。