带有SHA256withRSA的TrustKit

Joh*_*ohn 5 pinning ios swift

我正在尝试使用TrustKit在我的应用程序中配置SSL固定,但出现此错误:

由于未捕获的异常“ TrustKit配置无效”而终止应用程序,原因:“ TrustKit已使用域xxx.com的TSKPublicKeyAlgorithms初始化为无效值”

服务器正在将其SHA256withRSA用作签名算法。在TrustKit 的文档页面上,只有kTSKAlgorithmRsa2048kTSKAlgorithmRsa4096(我都尝试过)。

是否可以使用TrustKit和SHA256withRSA?