SwiftHTTP icon indicating copy to clipboard operation
SwiftHTTP copied to clipboard

Pinning Trusted certs or keys

Open matiasgualino opened this issue 6 years ago • 2 comments

Hi, I have to implement Cert Pinning in my application. I saved my certificate in my bundle, but certificateChainForTrust or publicKeyChainForTrust returns 3 values.

Library expects trustedCount == 3 to return true on both cases, but I have just one, so the library returns false.

I read different posts where people say something like "A validation is OK when you have at least one key."

Am I wrong? Can you help me or change the validation to trustedCount > 1?

Regards.

matiasgualino avatar May 04 '18 21:05 matiasgualino

I thick you can change codes like this 2018-06-21 4 38 49

Xixi0218 avatar Jun 21 '18 08:06 Xixi0218

Are we sure this is the problem?

nilecoder avatar Nov 15 '21 04:11 nilecoder