use of org.jivesoftware.openfire.keystore.IdentityStore in project Openfire by igniterealtime.
the class XMPPServer method finalSetupSteps.
private void finalSetupSteps() {
for (String propName : JiveGlobals.getXMLPropertyNames()) {
if (!XML_ONLY_PROPERTIES.contains(propName)) {
if (JiveGlobals.getProperty(propName) == null) {
JiveGlobals.setProperty(propName, JiveGlobals.getXMLProperty(propName));
}
JiveGlobals.setPropertyEncrypted(propName, JiveGlobals.isXMLPropertyEncrypted(propName));
}
}
// Check if keystore (that out-of-the-box is a fallback for all keystores) already has certificates for current domain.
// Will be a module after finishing setup.
CertificateStoreManager certificateStoreManager = null;
try {
certificateStoreManager = new CertificateStoreManager();
certificateStoreManager.initialize(this);
certificateStoreManager.start();
final IdentityStore identityStore = certificateStoreManager.getIdentityStore(ConnectionType.SOCKET_C2S);
identityStore.ensureDomainCertificate();
} catch (Exception e) {
logger.error("Error generating self-signed certificates", e);
} finally {
if (certificateStoreManager != null) {
certificateStoreManager.stop();
certificateStoreManager.destroy();
}
}
// Initialize list of admins now (before we restart Jetty)
AdminManager.getInstance().getAdminAccounts();
}
Aggregations