ss-abramchuk / OpenVPNAdapter

Objective-C wrapper for OpenVPN library. Compatible with iOS and macOS.
GNU Affero General Public License v3.0
480 stars 215 forks source link

auth-user-pass #172

Open sysbol opened 4 years ago

sysbol commented 4 years ago

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

ss-abramchuk commented 4 years ago

Hi @sysbol,

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

sysbol commented 4 years ago

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

ss-abramchuk commented 4 years ago

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.

sysbol commented 4 years ago

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

ss-abramchuk commented 4 years ago

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

reusu commented 4 years ago

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