sslContextFactory.setKeyManagerFactoryKeyStorePassword(keystorePassword); sslContext = sslContextFactory.newInstance(); log.debug("SSL provider is: {}", sslContext.getProvider());
@Override protected void init() { super.init(); try { sslContext = sslContextFactory.newInstance(); } catch (Exception e) { logger.error("Exception while creating SSL context: ", e); } certificateSelection = new SslCertificateSelectionFilter(true); }
@Override protected void init() { super.init(); try { sslContext = sslContextFactory.newInstance(); } catch (UnrecoverableKeyException uke) { // Catch these exceptions separately, so that we can throw // a RuntimeException and cause the Gateway to not start up. // The likely cause is that the keystore contains keys that // are encrypted using a passphrase which differs from the // passphrase protecting the keystore itself (see KG-6925). throw new RuntimeException("Unable to load necessary certificate keys from keystore; perhaps your keys are protected by passwords that are different from the keystore password?", uke); } catch (Exception e) { logger.error("Exception while creating SSL context: ", e); } certificateSelection = new SslCertificateSelectionFilter(false); }
sslContextFactory.setKeyManagerFactoryKeyStorePassword(keystorePassword); sslContext = sslContextFactory.newInstance(); log.debug("SSL provider: {}", sslContext.getProvider());
final SSLContext sslContext = sslFactory.newInstance (); if ( startInactive )
final SSLContext sslContext = sslFactory.newInstance (); if ( startInactive )