You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sslengineconfigurator is configured as follows. This is typically done by the application Instantiating the RemoteP2PModule.
System.getProperties().put(SSLContextConfigurator.TRUST_STORE_FILE, trustStoreLocation);
System.getProperties().put(SSLContextConfigurator.TRUST_STORE_PASSWORD, "xxx");
final SSLContextConfigurator defaultConfig = new SSLContextConfigurator();
defaultConfig.retrieve(System.getProperties());
SSLEngineConfigurator sslEngineConfigurator = new SSLEngineConfigurator(defaultConfig, true, false,
false);
Add a new constructor to the RemoteP2PModule as follows:
The RemoteP2P module currently instantiates the websocket client via the following:
ClientManager client = ClientManager.createClient();
However, if a custom ssl context has to be created, we need to add a client property as follows:
client.getProperties().put("org.glassfish.tyrus.client.sslEngineConfigurator",
sslEngineConfigurator);
The sslengineconfigurator is configured as follows. This is typically done by the application Instantiating the RemoteP2PModule.
System.getProperties().put(SSLContextConfigurator.TRUST_STORE_FILE, trustStoreLocation);
System.getProperties().put(SSLContextConfigurator.TRUST_STORE_PASSWORD, "xxx");
final SSLContextConfigurator defaultConfig = new SSLContextConfigurator();
Add a new constructor to the RemoteP2PModule as follows:
public RemoteP2PModule(URI baseURI,SSLEngineConfigurator configurator) {
this.baseServerUri = baseURI;
this.sslEngineConfigurator = configurator;
}
Add an instance variable as below:
The text was updated successfully, but these errors were encountered: