X-dea / flutter_vpn

Plugin to access VPN service for Flutter | Flutter 的 VPN 插件
GNU Lesser General Public License v3.0
345 stars 125 forks source link

Use CA Certificate #78

Open LastxTemplar opened 3 years ago

LastxTemplar commented 3 years ago

Hi, I am trying to connect to NordVPN using this package but it seems it needs a certificate installed. How can that be achieved? For reference this is how NordVPN says you should connect: https://support.nordvpn.com/Connectivity/Android/1133050982/How-to-connect-to-NordVPN-with-IKEv2-IPSec-on-Android.htm

Thank you!

vitasha10 commented 2 years ago

@LastxTemplar For this project it was necessary to indicate the certificate was not necessary. The easiest way is to deploy your server using Let's encrypt so that you can log in simply with a username and password. Without a certificate, although in fact it will be used.

To start a suitable server, run or study the script presented in this article Read about Ikev2 as a protocol. It's going throw the SSL. Picture

Don't forget that you must connect with one user. The credentials isn't in /etc/ipsec.sectes (I don't know why), you write them here:

# Enter the domain name of the server directed to the IP address
# use the sslip.io service if you don't have a domain
Hostname for VPN: 123-45-67-89.sslip.io
# VPN username
VPN username: coolguy
# password
VPN password (no quotes, please):