We are trying to migrate from NSURLConnection
to URLSession. But for some reason the challenge part in the delegate methods are working differently in these two frameworks.
The webservice endpoint server of ours need a SSL cert for trust along with BASIC Auth. In NSURLConnection, I can see that the "NSURLAuthenticationMethodClientCertificate" challenge is requested by the server and the code sends the p12 file and works perfect.
But in URLSession, I can see only this challenge is coming thru - "NSURLAuthenticationMethodServerTrust" and even If I send the P12 file for this challenge, i do not get any response. I have mentioned this to my webservice endpoint server.
to URLSession. But for some reason the challenge part in the delegate methods are working differently in these two frameworks.
The webservice endpoint server of ours need a SSL cert for trust along with BASIC Auth. In NSURLConnection, I can see that the "NSURLAuthenticationMethodClientCertificate" challenge is requested by the server and the code sends the p12 file and works perfect.
But in URLSession, I can see only this challenge is coming thru - "NSURLAuthenticationMethodServerTrust" and even If I send the P12 file for this challenge, i do not get any response. I have mentioned this to my webservice endpoint server.