Use ./build-key-pass to generate a certificate, this way you need to enter a password when the client vpn connection is required
cd /tools/openvpn-2.0.9/easy-rsa/2.0/
source vars
./build-key-pass lovelinux1
Password required for client connection
- Copy the client's certificate and private key
sz -y keys/lovelinux1.{crt,key} - Make a copy of the original configuration in the C:\Program Files (x86)\OpenVPN\config directory in Windows, and replace the client's certificate and private key with the newly applied certificate and private key
Modify the ovpn file
client dev tun proto tcp remote 192.168.1.33 1194 resolv-retry infinite nobind persist-key persist-tun ca ca.crt cert lovelinux1.crt \\客户端证书 key lovelinux1.key \\客户端私钥 comp-lzo verb 3
- connect
Prompt for password for certificate
Add multiple certificates
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=325350903&siteId=291194637
Recommended
Ranking