Complete fix for issue 4371 (setup throws NullPointerException when trying to use a PKCS12 certificate)
With these changes, the default server certificate nick name is used when the user decides to use a self-signed certificate.
| | |
| | | |
| | | private int sslPort = 636; |
| | | |
| | | /** Alias of a self-signed certificate. */ |
| | | public static final String SELF_SIGNED_CERT_ALIAS = "server-cert"; |
| | | |
| | | /** |
| | | * The different type of security options that we can have. |
| | | */ |
| | |
| | | { |
| | | SecurityOptions ops = new SecurityOptions(); |
| | | ops.setCertificateType(CertificateType.SELF_SIGNED_CERTIFICATE); |
| | | updateCertificateOptions(ops, enableSSL, enableStartTLS, sslPort, null); |
| | | updateCertificateOptions(ops, enableSSL, enableStartTLS, sslPort, |
| | | SELF_SIGNED_CERT_ALIAS); |
| | | return ops; |
| | | } |
| | | |
| | |
| | | "org.opends.server.extensions.ConfigFileHandler"; |
| | | |
| | | /** Alias of a self-signed certificate. */ |
| | | protected static final String SELF_SIGNED_CERT_ALIAS = "server-cert"; |
| | | protected static final String SELF_SIGNED_CERT_ALIAS = |
| | | SecurityOptions.SELF_SIGNED_CERT_ALIAS; |
| | | |
| | | /** The thresold in minutes used to know whether we must display a warning |
| | | /** The threshold in minutes used to know whether we must display a warning |
| | | * informing that there is a server clock difference between two servers |
| | | * whose contents are being replicated. */ |
| | | public static final int WARNING_CLOCK_DIFFERENCE_THRESOLD_MINUTES = 5; |