emqx / CocoaMQTT

MQTT 5.0 client library for iOS and macOS written in Swift
https://www.emqx.com/en
Other
1.6k stars 419 forks source link

自签名证书 #508

Closed liuhedong01 closed 1 year ago

liuhedong01 commented 1 year ago

1、使用自签名证书?allowUntrustCACertificate设置为false 报错 2、怎么校验服务端证书?

liuhedong01 commented 1 year ago

证书加上了,自签名的,报错 Error Domain=kCFStreamErrorDomainSSL Code=-9807 "(null)" UserInfo={NSLocalizedRecoverySuggestion=Error code definition can be found in Apple's SecureTransport.h}

liuhedong01 commented 1 year ago

https://github.com/ChatSecure/ChatSecure-iOS/issues/182 看到这个,咱们的库是否可以支持一下?是否有参考意义