|
|
@ -1,5 +1,5 @@
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* Copyright 2012-2019 the original author or authors.
|
|
|
|
* Copyright 2012-2020 the original author or authors.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
@ -153,7 +153,9 @@ public class SslConnectorCustomizerTests {
|
|
|
|
customizer.customize(connector);
|
|
|
|
customizer.customize(connector);
|
|
|
|
this.tomcat.start();
|
|
|
|
this.tomcat.start();
|
|
|
|
SSLHostConfig sslHostConfig = connector.getProtocolHandler().findSslHostConfigs()[0];
|
|
|
|
SSLHostConfig sslHostConfig = connector.getProtocolHandler().findSslHostConfigs()[0];
|
|
|
|
|
|
|
|
sslHostConfig.getCertificates(true);
|
|
|
|
SSLHostConfig sslHostConfigWithDefaults = new SSLHostConfig();
|
|
|
|
SSLHostConfig sslHostConfigWithDefaults = new SSLHostConfig();
|
|
|
|
|
|
|
|
sslHostConfigWithDefaults.getCertificates(true);
|
|
|
|
assertThat(sslHostConfig.getTruststoreFile())
|
|
|
|
assertThat(sslHostConfig.getTruststoreFile())
|
|
|
|
.isEqualTo(SslStoreProviderUrlStreamHandlerFactory.TRUST_STORE_URL);
|
|
|
|
.isEqualTo(SslStoreProviderUrlStreamHandlerFactory.TRUST_STORE_URL);
|
|
|
|
assertThat(sslHostConfig.getCertificateKeystoreFile())
|
|
|
|
assertThat(sslHostConfig.getCertificateKeystoreFile())
|
|
|
|