OpenVPNAdapter icon indicating copy to clipboard operation
OpenVPNAdapter copied to clipboard

auth-user-pass

Open sysbol opened this issue 5 years ago • 6 comments

你好,我们的vpn服务器不进行证书认证,opvn 文件如何进行配置呢 非常感谢

sysbol avatar Jun 18 '20 10:06 sysbol

Hi @sysbol,

Could you use English when writing messages so that everyone could read them without translation?

ss-abramchuk avatar Jun 20 '20 04:06 ss-abramchuk

Thanks for your reply. Our company has now developed a VPN App. When the App is connected to the server, the App does not need to upload the CA certificate for verification. I now want to learn to use the OpenVPNAdapter library for development and maintenance. How should the opvn file be configured? Turn off ca certificate verification, thank you very much

sysbol avatar Jun 22 '20 01:06 sysbol

I'm afraid I cannot help you with opvn configuration. I advise you to read OpenVPN reference manual to find appropriate options for opvn file.

ss-abramchuk avatar Jun 22 '20 08:06 ss-abramchuk

Hello, this is the ovpn data I configured: client dev tun proto udp remote 103.242.72.92 8388 auth-user-pass In the code, disableClientCert is set to true, and an error occurs during operation: "Error Domain=me.ss-abramchuk.openvpn-adapter.error-domain Code=67 "Failed to establish connection with OpenVPN server" UserInfo={NSLocalizedFailureReason=Unknown error., me.ss-abramchuk.openvpn-adapter. error-key.message=mbed TLS: ca certificate is undefined, me.ss-abramchuk.openvpn-adapter.error-key.fatal=true, NSLocalizedDescription=Failed to establish connection with OpenVPN server}"

It seems that CA certificates are still required? ? ? Ask for advice

sysbol avatar Jun 22 '20 09:06 sysbol

I'm sorry but It is the matter of OpenVPN configuration and this is not my specialization. Try to ask on OpenVPN Support Forum.

ss-abramchuk avatar Jun 22 '20 12:06 ss-abramchuk

因为本质上使用OpenVPN就需要有一个CA 不能省略

reusu avatar Nov 03 '20 05:11 reusu