提问人:user9785981 提问时间:1/31/2023 最后编辑:user9785981 更新时间:1/31/2023 访问量:31
iOS Server 自签名证书过期检测
iOS Server self-signed certificate expiration detection
问:
我想检测 iOS Server 自签名证书过期
我使用AFNetworking lib,我使用这种方法证书验证。我没有找到证书过期属性。- (void)setSessionDidReceiveAuthenticationChallengeBlock:(NSURLSessionAuthChallengeDisposition (^)(NSURLSession *session, NSURLAuthenticationChallenge *challenge, NSURLCredential * __autoreleasing *credential))block
我再次发现这个,但无效和过期是一个属性
/**
Whether or not to trust servers with an invalid or expired SSL certificates. Defaults to `NO`.
*/
@property (nonatomic, assign) BOOL allowInvalidCertificates;
有英雄帮助我吗?
答: 暂无答案
评论