config.setKeystorePath(null); } else { config.setKeystoreType("BKS"); + "cacerts.bks"; config.setKeystorePath(str);
ConnectionConfiguration connectionConfiguration = new ConnectionConfiguration("localhost", 5222); connectionConfiguration.setSecurityMode(ConnectionConfiguration.SecurityMode.required); connectionConfiguration.setSASLAuthenticationEnabled(true); connectionConfiguration.setKeystorePath("src/main/resources/bogus_mina_tls.cert"); connectionConfiguration.setTruststorePath("src/main/resources/bogus_mina_tls.cert"); connectionConfiguration.setTruststorePassword("boguspw");
config.setKeystorePath(keystorepath); config.setKeystoreType(keystoretype); config.setTruststorePath(truststorepath);