datatheorem / TrustKit

Easy SSL pinning validation and reporting for iOS, macOS, tvOS and watchOS.
MIT License
2k stars 360 forks source link

[Question] Can I use this to trust a self-signed cert? #291

Closed matallui closed 1 year ago

matallui commented 1 year ago

Hi! I have this Expo app that needs to talk to random API servers that don't have a FQDN and use a self-signed certificate. All of them use the same self-signed certificate, so I'm assuming there's a way for us to add the cert to the trusted list of certs and have all our requests (we need to use fetch and Websocket) go through just fine.

Will this project fit those needs?

I think I found a solution for Android here (I have yet to test it), but need to find a similar solution for iOS.

Thanks in advance!

nabla-c0d3 commented 1 year ago

Hello! Unfortunately self-signed certificates are not supported by TrustKit. Good luck!