Update README for non-optional CA
This commit is contained in:
parent
f5161a0c39
commit
849f4e9de5
|
@ -80,16 +80,15 @@ For the VPN to work properly, the `BasicTunnel` demo requires:
|
||||||
|
|
||||||
both in the main app and the tunnel extension target.
|
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:
|
Example:
|
||||||
|
|
||||||
builder.endpointProtocols = [TunnelKitProvider.EndpointProtocol(.udp, 1194)]
|
private let ca = CryptoContainer(pem: """
|
||||||
builder.ca = """
|
|
||||||
-----BEGIN CERTIFICATE-----
|
-----BEGIN CERTIFICATE-----
|
||||||
MIIFJDCC...
|
MIIFJDCC...
|
||||||
-----END CERTIFICATE-----
|
-----END CERTIFICATE-----
|
||||||
"""
|
""")
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue