We are using the self-signed certificate at the server end. When our iOS App tries to evaluate the certificate, due to new regulations forced upon https://support.apple.com/en-us/HT210176, it fails by giving "recoverableTrustFailure"
. The reason being the validity of certificate being > 825 days.
The API used for the call is SecTrustEvaluateWithError(_:_:)
.
Although we can ignore this particular error, we would not like to since there can be many other reasons for the error which could cause security vulnerabilities.
Any leads for how can one avoid this validity enforcement/make sure the API doesn't give this error?
Thanks.