TrustKit with SHA256withRSA
Asked Answered
C

0

7

I'm trying to configure SSL pinning in my app with TrustKit but I'm getting this error:

Terminating app due to uncaught exception 'TrustKit configuration invalid', reason: 'TrustKit was initialized with an invalid value for TSKPublicKeyAlgorithms for domain xxx.com'

The server is using SHA256withRSA as a signature algorithm. On the documentation page of the TrustKit there's only kTSKAlgorithmRsa2048 and kTSKAlgorithmRsa4096 (I tried both of them).

Is it possible to use TrustKit and SHA256withRSA?

Calces answered 25/8, 2018 at 17:33 Comment(1)
I think kTSKAlgorithmRsa2048 is the correct one for SHA256 hash key. The issue is not in the algorithm I suppose.Sphenogram

© 2022 - 2024 — McMap. All rights reserved.