I ask you if my clients connect to openvpn server through two files only: client.ovpn and ca.crt, Is this connection secure? Any security problems in this mechanism there? Is the connection encrypted?
Knowing that:
- Clients can connect without any problems or warnings,
- Openvpn client should connect to server though these four files: client.crt client.key ca.crt client.ovpn ,
- client.ovpn as shown:
client dev tun0 proto tcp remote IP PORT resolv-retry infinite nobind persist-key persist-tun ca ca.crt # cert client.crt # key client.key remote-cert-tls server ;tls-auth ta.key 1 cipher AES-128-CBC comp-lzo verb 3 auth-user-pass pass
Server configuration:
port port
proto tcp
dev tun0
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
server P.P.P.P 255.255.255.0
ifconfig-pool-persist ipp.txt
push "dhcp-option DNS 8.8.4.4" push "dhcp-option DNS 8.8.8.8"
cipher AES-128-CBC
comp-lzo
persist-key persist-tun
status openvpn-status.log verb 3
client-cert-not-required
plugin /usr/lib/openvpn/openvpn-plugin-auth-pam.so login