@Override
    public int hashCode() {
        return this.getId();
    }
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