简体   繁体   English

使用NSURLSession固定公钥

[英]Public Key pinning with NSURLSession

I want to implement public key pinning with NSURLSession. 我想用NSURLSession实现公钥固定。 From various posts i am getting certificate pinning but not any solid reference for public key pinning. 从各种帖子中,我得到了证书固定,但没有任何可靠的公钥固定参考。 I don't want to use certificate pinning to avoid future update in server side certificate and my app release. 我不想使用证书固定,以避免将来在服务器端证书和我的应用发行版中进行更新。

You can have a look at https://github.com/datatheorem/TrustKit . 您可以查看https://github.com/datatheorem/TrustKit It's an iOS library that makes it easy to do public key pinning, and it works with NSURLSession. 这是一个iOS库,可以轻松进行公钥固定,并且可以与NSURLSession一起使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM