watchOS 7 beta networking gives SSL error

124 views Asked by At

I have a watch app that is working OK with watchOS 6. It uses AlamoFire 5 for networking.

Testing it with watchOS 7, it gives this error "Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made." if I disable Certificate Pinning (PinnedCertificatesTrustEvaluator).

If I enable it, the error is "Code=-67820 "Certificate 2 “Trusted Root CA SHA256 G2” has errors: Certificate is revoked;".

The same certificate I use on the app on watchOS 6 and it was generated with the openssl command (openssl s_client -connect <SITE_URL>:443 </dev/null | openssl x509 -outform DER -out cert.der).

I have nothing related to networking configured in a .plist.

Someone knows what's changed in watchOS 7 or need to be done in Alamofire 5 ?

Thank you in advance!

0

There are 0 answers