WKWebView client certificate authentication issue

Originator:pgeoffroy
Number:rdar://26344026 Date Originated:18-May-2016
Status:Duplicate of 18340261 (Open) Resolved:
Product:iOS SDK Product Version:9.3.1
Classification:Serious Bug Reproducible:Always
 
Summary:
I have trouble to implement a client certificate authentication with a WKWebView.

I implemented the  method webView(_:didReceiveAuthenticationChallenge:completionHandler:) from WKNavigationDelegate of my WKWebView to load the certificate for the NSURLAuthenticationMethodClientCertificate authentication method, however I always get the error : Error Domain=NSURLErrorDomain Code=-1206 "The server “xxxxx.mysite.com” requires a client certificate."

Steps to Reproduce:
1. Implement webView(_:didReceiveAuthenticationChallenge:completionHandler:)  of my WKWebView navigationDelegate 
2. Make a call to the completionHandler for the NSURLAuthenticationMethodClientCertificate authentication with the parameters 
    - UseCredential
    - a NSURLCredential object initialized with the PKCS12 client certificate file.

Expected Results:
The WKWebView should load the html data of the URL https://xxxxx.mysite.com


Actual Results:
Nothing is loaded, a popup appears with the message : "The server “xxxxx.mysite.com” requires a client certificate.

In XCode console I get the error : Error Domain=NSURLErrorDomain Code=-1206 "The server “xxxxx.mysite.com” requires a client certificate."




Version:
iOS 9.3.1

Notes:
XCode 7.3 (swift)


Configuration:
iPad mini 2 using WIFI

Comments

Is there any update now? Needed a fix

By snehasparkle at Oct. 9, 2017, 7:59 a.m. (reply...)

Is there an update on this issue?

By Florian.Reinhart at July 20, 2016, 7:41 p.m. (reply...)

The response from apple :

=====================================================================

Apple Developer Relations24-May-2016 09:18 AM

Engineering has determined that your bug report is a duplicate of another issue and will be closed.

The open or closed status of the original bug report your issue was duplicated to appears in the yellow "Duplicate of XXXXXXXX" section of the bug reporter user interface. This section appears near the top of the right column's bug detail view just under the bug number, title, state, product and rank.

If you have any questions or concerns, please update your report directly here: http://bugreport.apple.com/.

=====================================================================

The original bug has id 18340261 and still seems to be in open status. I can't get more information about this bug report.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!