How to pin the Public key of a certificate on iOS

后端 未结 7 961
执笔经年
执笔经年 2020-11-30 18:15

While improving the security of an iOS application that we are developing, we found the need to PIN (the entire or parts of) the SSL certificate of server to prevent man-in-

7条回答
  •  青春惊慌失措
    2020-11-30 19:08

    If you use AFNetworking, use AFSecurityPolicy *policy = [AFSecurityPolicy policyWithPinningMode:AFSSLPinningModePublicKey];

提交回复
热议问题