From: Richard T Bonhomme
A server configured with --client-disconnect and --username-as-common-name
will pass the X509-CN not username, after the client has completed a
renegotiation, to --client-disconnect.
Explicitly set the environment variable common_name to the current value,
which will be
From: Richard T Bonhomme
--client-disconnect is always passed the X509 certificate common_name,
which is incorrect when --username-as-common-name is used.
Set the environment variable common_name to the correct value, prior to
calling --client-disconnect.
Resolves https://community.openvpn.net/