Hi, I'm trying to validate certificate that I know has two problems:
- Too long expiration date
- Hostname mismatch
I'm ok with those problems so when they occurs I want to accept this certificate as valid.
When using:
success = SecTrustEvaluateWithError(trust, &error)
let dictionary = SecTrustCopyResult(trust)
this dictionary contains validation failure reasons under key "TrustResultDetails"
- key : SSLHostname
- value : 0
- key : ValidityPeriodMaximums
- value : 0
but none of those keys are documented and not really sutable for production code?
My question is how to know validation failure reasons or how to change validation method to pass validation when those problems occurs?
Thanks :)