| | |
| | | package org.opends.server.admin; |
| | | |
| | | import static org.opends.messages.AdminMessages.*; |
| | | |
| | | import java.io.File; |
| | | import java.io.FileWriter; |
| | | import java.io.PrintWriter; |
| | |
| | | import java.util.List; |
| | | import java.util.SortedSet; |
| | | import java.util.TreeSet; |
| | | |
| | | import javax.naming.ldap.Rdn; |
| | | |
| | | import org.forgerock.opendj.ldap.AddressMask; |
| | |
| | | import org.opends.server.admin.std.server.LDAPConnectionHandlerCfg; |
| | | import org.opends.server.admin.std.server.RootCfg; |
| | | import org.opends.server.config.ConfigException; |
| | | import org.opends.server.core.ServerContext; |
| | | import org.opends.server.core.SynchronousStrategy; |
| | | import org.opends.server.protocols.ldap.LDAPConnectionHandler; |
| | | import org.opends.server.types.ConfigChangeResult; |
| | |
| | | /** |
| | | * Creates a self-signed JKS certificate if needed. |
| | | * |
| | | * @param serverContext |
| | | * The server context. |
| | | * @throws InitializationException |
| | | * If an unexpected error occurred whilst trying to create the |
| | | * certificate. |
| | | */ |
| | | public static void createSelfSignedCertificateIfNeeded() |
| | | public static void createSelfSignedCertificateIfNeeded(ServerContext serverContext) |
| | | throws InitializationException |
| | | { |
| | | try |