I'm using a URLSession, and want to be able to identify the case when I have a bad client certificate.
When I get a call to
and send a bad certificate in response to the client cert challenge, I would expect an error of
.cfurlErrorClientCertificateRejected
In
What I'm seeing instead is the generic
.cfurlErrorSecureConnectionFailed
When I was using the SSL APIs directly I was getting back
errSSLPeerUnknownCA or errSSLPeerBadCert
Which makes it clear where the problem lies. Is there a way to see that it was specifically a problem with the client certificate using the URLSession delegates?
When I get a call to
Code Block func urlSession(_ session:didReceive challenge:completionHandler)
and send a bad certificate in response to the client cert challenge, I would expect an error of
.cfurlErrorClientCertificateRejected
In
Code Block func urlSession(_ session: task:didCompleteWithError error:)
What I'm seeing instead is the generic
.cfurlErrorSecureConnectionFailed
When I was using the SSL APIs directly I was getting back
errSSLPeerUnknownCA or errSSLPeerBadCert
Which makes it clear where the problem lies. Is there a way to see that it was specifically a problem with the client certificate using the URLSession delegates?