| | |
| | | import org.opends.quicksetup.event.ProgressUpdateListener; |
| | | import org.opends.quicksetup.util.ServerController; |
| | | import org.opends.quicksetup.util.ProgressMessageFormatter; |
| | | import org.opends.quicksetup.util.UIKeyStore; |
| | | import org.opends.quicksetup.ui.GuiApplication; |
| | | import org.opends.quicksetup.util.Utils; |
| | | |
| | |
| | | { |
| | | if (trustManager == null) |
| | | { |
| | | trustManager = new ApplicationTrustManager(null); |
| | | if (!Utils.isCli()) |
| | | { |
| | | try |
| | | { |
| | | trustManager = new ApplicationTrustManager(UIKeyStore.getInstance()); |
| | | } |
| | | catch (Throwable t) |
| | | { |
| | | LOG.log(Level.WARNING, "Error retrieving UI key store: "+t, t); |
| | | trustManager = new ApplicationTrustManager(null); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | trustManager = new ApplicationTrustManager(null); |
| | | } |
| | | } |
| | | return trustManager; |
| | | } |