From 849f4e9de5b31a08d108491dba8782fe34e13f29 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Sat, 6 Oct 2018 16:50:04 +0200 Subject: [PATCH] Update README for non-optional CA --- README.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index d042bd9..f1f3cd8 100644 --- a/README.md +++ b/README.md @@ -80,16 +80,15 @@ For the VPN to work properly, the `BasicTunnel` demo requires: both in the main app and the tunnel extension target. -In order to test connection to your own server, modify the file `Demo/BasicTunnel-[iOS|macOS]/ViewController.swift` and make sure to set `builder.ca` to the PEM encoded certificate of your VPN server's CA (or `nil` to skip CA validation, however discouraged). +In order to test connection to your own server, modify the file `Demo/BasicTunnel-[iOS|macOS]/ViewController.swift` and make sure to set `ca` to the PEM encoded certificate of your VPN server's CA. Example: - builder.endpointProtocols = [TunnelKitProvider.EndpointProtocol(.udp, 1194)] - builder.ca = """ - -----BEGIN CERTIFICATE----- - MIIFJDCC... - -----END CERTIFICATE----- - """ + private let ca = CryptoContainer(pem: """ + -----BEGIN CERTIFICATE----- + MIIFJDCC... + -----END CERTIFICATE----- + """) ## Documentation