I was wondering what will happen if the client erase "ns-cert-type server" in his ovpn config? Will he be vulnerable to man-in-the-middle attack?[OpenVPN 2.0 and below] Build your server certificates with the build-key-server script (see the easy-rsa documentation for more info). This will designate the certificate as a server-only certificate by setting nsCertType=server. Now add the following line to your client configuration:
ns-cert-type server
Can I use these both together on the client config? Do I only need to specify it at the client config? Or I need to include it too in the server config?
==============remote-cert-tls server
ns-cert-type server
Also, most of the openvpn install instruction I see over the web says keep the "common name" as server when doing build-key-server server?
Which name are they referring to? This one:
or the common name that is asked after issuing the ./build-key-server command ?./build-key-server server