Bug 140202 - Incorrect SSL error code received from WKWebView
Summary: Incorrect SSL error code received from WKWebView
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: iPhone / iPad All
: P3 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-01-07 13:56 PST by Eugene But
Modified: 2015-01-07 16:06 PST (History)
2 users (show)

See Also:


Attachments
Test app (26.65 KB, application/zip)
2015-01-07 13:56 PST, Eugene But
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene But 2015-01-07 13:56:47 PST
Created attachment 244191 [details]
Test app

Summary:
webView:didFailProvisionalNavigation:withError: passes NSURLErrorServerCertificateUntrusted error if user clock is not set correctly

Steps to Reproduce:
1. Set device time to past (f.e. year 2007)
2. Unarchive, build and run SSLCertTest on device
3. Observe console log

Expected Results:
Console log is "Certificate is untrusted"

Actual Results:
Console log should be either "Certificate has bad date" or "Certificate is not yet valid". User should be given a hint that something either wrong with the clock or certificate has expired.
Comment 1 Alexey Proskuryakov 2015-01-07 15:47:09 PST
This was determined to be an issue outside WebKit. It's tracked internally as rdar://problem/18517043.

Eugene, you filed multiple bugs today, do you know if any of these are also in Radar? If they are, could you please annotate these with Radar links?
Comment 2 Eugene But 2015-01-07 16:05:03 PST
All filled issues were filed to Apple Radar.
Comment 3 Eugene But 2015-01-07 16:05:17 PST
Radar ID: 18517043.