add common name support for server certificate