CRAlpha / CRAlpha/react-native-wkwebview

Working with self-signed ssl certificates

Open
#105 0 comments 7 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
637
Forks
263
PR merge metrics
No merged PRs in 30d

Description

I need to develop the site that will be loaded into the wkwebview in https (for Apple Pay).

For development purpose, I have a self-signed certificate for localhost. On Safari, I can trust the site and open the site. I have also dragged the certificate into the ios simulator and installed the certificate on the simulator. Safari does not complain about it after that.

Wkwebview, however, throws an error (code: `-1202`, domain: `NSURLErrorDomain`).

How do we go about trusting a certificate here?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the self-signed localhost certificate failure in the iOS simulator with WKWebView, noting the NSURLErrorDomain error code -1202 and comparing it with Safari. The issue names no repository file or test, so first locate the WKWebView loading and certificate-handling entry points. Done means establishing and documenting the supported development-time trust behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
objective-c, react-native
Domain
mobile-dev, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.