Skip to content

Instantly share code, notes, and snippets.

import Foundation
import WebKit
class SelfSignedCert: NSObject, WKNavigationDelegate {
private let CERT_NAME = "ca"
private let CERT_TYPE = "der"
public func webView(_ webView: WKWebView, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {