In the first part of your question you mentioned:
The same certificate I use on the app on watchOS 6 and it was generated with the openssl command (openssl sclient -connect <SITEURL>:443 </dev/null | openssl x509 -outform DER -out cert.der).
It looks like you are downloading a copy of the server certificate to saving the bytes in your app and using it in your
fingerPrints variable.
You then checked the remote certificate and received the following:
Issuer Valid Certificadora Digital SSL OV CA 2018
Signature algorithm SHA256withRSA
Revocation status Good
In the first part of your question you mentioned:
the error is "Code=-67820 "Certificate 2 “Trusted Root CA SHA256 G2” has errors: Certificate is revoked;".
So based on this info something does not add up here; In the first message you have the CA issuer as "Trusted Root CA SHA256 G2," but in your lastest message you have the CA issuer as "Issuer Valid Certificadora Digital SSL OV CA 2018."
My recommendation here would be to iron out the latest certificate chain and validate that everything is good in that chain. Next, if you need to validate the leaf certificate, make sure you have the correct leaf bytes saved locally, and your code is checking against the correct leaf during certificate evaluation in your app.
If you still run into issues with this when watchOS 7 is released,
open a TSI and I can help you iron this out. Normally I would just have you open a TSI now, but DTS does not support software that is in Beta.
Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com