Revert the previous commit. We cannot use the port as subject DN of the certifi
cate since this can break some clients.
| | |
| | | */ |
| | | private String getSelfSignedCertificateSubjectDN() |
| | | { |
| | | int port; |
| | | SecurityOptions sec = getUserData().getSecurityOptions(); |
| | | if (sec.getEnableSSL()) |
| | | { |
| | | port = sec.getSslPort(); |
| | | } |
| | | else |
| | | { |
| | | port = getUserData().getServerPort(); |
| | | } |
| | | |
| | | return "cn="+Rdn.escapeValue(getUserData().getHostName()+":"+port)+ |
| | | ",O=OpenDS Self-Signed Certificate"; |
| | | return "cn="+Rdn.escapeValue(getUserData().getHostName())+ |
| | | ",O=OpenDS Self-Signed Certificate"; |
| | | } |
| | | |
| | | /** |