public Server getServer() throws Exception {
        return Servers.getInstance().query(this.serverId);
    }
Get CommonName from SubjectDN.
If regex capture is failed, return inputted SubjectDN.
@param subject: SubjectDN
@return cn or subject
src/main/java/core/packetproxy/model/ClientCertificate.java