Also changed the vc value of variable : static let ca = OpenVPN.CryptoContainer(pem: """,
but for static let tlsKey = OpenVPN.StaticKey(file: """. It is same as it is 'coz can't convert into 2048 bit statickey.
I've configures all the app group and bundleidentifier also.
Still I am unable to connect.
Do you have any video link where you are connecting with .ovpn file? It would help me much more. I need to connect only in iPhone/iPad devices. Please find the attached sample doc file through which I need to connect.
ovpn-config.docx
Originally posted by @keeshux in https://github.com/passepartoutvpn/tunnelkit/issues/329#issuecomment-1668578664
Hi, Davide, I'm configured the all inputs as following: do { let parser = try? OpenVPN.ConfigurationParser.parsed(fromContents: ovpnConfigSTR)
and make method :
static func make(params: Parameters) -> OpenVPN.ProviderConfiguration { var builder = OpenVPN.ConfigurationBuilder() builder.ca = ca builder.cipher = .aes256cbc builder.digest = .sha1 builder.compressionFraming = .compLZO builder.renegotiatesAfter = nil builder.remotes = [Endpoint(params.hostname, EndpointProtocol(params.socketType, params.port))] builder.tlsWrap = TLSWrap(strategy: .auth, key: tlsKey) builder.mtu = 1350 builder.routingPolicies = [.IPv4, .IPv6] let cfg = builder.build()
Also changed the vc value of variable : static let ca = OpenVPN.CryptoContainer(pem: """, but for static let tlsKey = OpenVPN.StaticKey(file: """. It is same as it is 'coz can't convert into 2048 bit statickey. I've configures all the app group and bundleidentifier also.
Still I am unable to connect. Do you have any video link where you are connecting with .ovpn file? It would help me much more. I need to connect only in iPhone/iPad devices. Please find the attached sample doc file through which I need to connect. ovpn-config.docx