我正在努力创建一个iCipher对象的列表以传递到我的ssl.Certificate选项作为我可接受的密码。我想传入一个逗号分隔的字符串(密码名)列表,然后从那里构建密码列表。比如:
from twisted.internet._sslverify import OpenSSLCipher
cipherList = "KRB5-IDEA-CBC-SHA,SEED-SHA"
mySupportedCiphers = []
for cipher in cipherList.split(","):
mySupportedCiphers.append(OpenSSLCipher(cipher))
。。。。 菌丝体点=ssl.Certificate选项(可接受密码=我支持的密码)
或者/另外,根据Twisted Docs返回使用中的TLS实现支持的默认/完整密码列表的一种方法
我很抱歉,如果这听起来含糊不清-我们正在试图确定为什么我的邮件接收者可以成功地通过TLS与我们的一个系统连接,而不是另一个。。。看起来这和密码有关,但我的理解是有限的,所以我们(我!)我在探索。。。。在
一如既往的感谢!:)
一种方法是使用^{}
.fromOpenSSLCipherString
构造函数。在相关问题 更多 >
编程相关推荐