Fix openvpn common name generation and hostname generation