mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-05-12 17:04:48 +00:00
Feature/acs 4460 mtls support (#752)
* ACS-4460: Release T-Core (T-Engines) 3.0.1-A3 [release], Truststore type fix.
This commit is contained in:
parent
80764c0b30
commit
47dbf77ad5
@ -116,7 +116,9 @@ public class MTLSConfig {
|
||||
}
|
||||
if(isTruststoreConfigured())
|
||||
{
|
||||
sslContextBuilder.loadTrustMaterial(trustStoreResource.getURL(), trustStorePassword);
|
||||
sslContextBuilder
|
||||
.setKeyStoreType(trustStoreType)
|
||||
.loadTrustMaterial(trustStoreResource.getURL(), trustStorePassword);
|
||||
}
|
||||
|
||||
return sslContextBuilder;
|
||||
|
@ -47,7 +47,9 @@ public class MtlsTestUtils {
|
||||
}
|
||||
|
||||
File trustStore = new File(trustStoreFile);
|
||||
sslContextBuilder.loadTrustMaterial(trustStore, trustStorePassword);
|
||||
sslContextBuilder
|
||||
.setKeyStoreType(trustStoreType)
|
||||
.loadTrustMaterial(trustStore, trustStorePassword);
|
||||
|
||||
SSLContext sslContext = sslContextBuilder.build();
|
||||
SSLConnectionSocketFactory sslContextFactory = new SSLConnectionSocketFactory(sslContext);
|
||||
|
Loading…
x
Reference in New Issue
Block a user