如何升级Stripe for TLS 1.2

时间:2016-08-15 07:46:16

标签: python stripe-payments tls1.2

我正在使用Stripe模块进行python(通过import numpy as np # Straight forward summation when index1 > index0 values = np.array([0.,10.,20.,30.,40.,50.,60.,70.]) index0 = np.array([0,3]) index1 = np.array([2,6]) # Desired Result: np.array([30,180]) # (0+10+20),(30+40+50+60) # Wrap around condition when index1 < index0 index0 = np.array([5]) index1 = np.array([1]) # Result: np.array([190]) # (50+60+70+0+10) ),我收到以下错误:

pip install stripe

根据Stripe的文档,他们说你应该重新安装Python(通过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. )并升级到最新版本的Stripe库(截至本文撰写时为1.37.0)。我已经完成了这两个步骤,但它没有任何作用。

我还应该做些什么?

1 个答案:

答案 0 :(得分:0)

你可以试试这个 您可以在https://www.ssllabs.com/ssltest/

检查服务器上运行的TLS版本

如果您的结果显示TLS版本1.2为NO,那么您必须根据您运行的服务器更新它。

相关问题