Hello,
i would like to use the ssl acceptor. So I switched my config from:
<acceptor type="tcp" listenAddr="0.0.0.0" port="2036">
<negotiator type="challenge" description="@config/users"/>
</acceptor>
to
<acceptor type="ssl" listenAddr="0.0.0.0" port="443">
<negotiator type="challenge" description="@config/users"/>
</acceptor>
SSL is working but the client is not able to connect.
If remove the negotiator everthing is working as it should:
So server side:
<acceptor type="ssl" listenAddr="0.0.0.0" port="443">
</acceptor>
and client:
final String connection = serverdns + ":" + 443;
/* create net4j config */
final IConnector connector = Net4jUtil.getConnector(IPluginContainer.INSTANCE, connectionType, connection);
final CDONet4jSessionConfiguration config = CDONet4jUtil.createNet4jSessionConfiguration();
config.setConnector(connector);
config.setRepositoryName(repositoryName);
session = config.openNet4jSession();
Is working.
But with server side:
<acceptor type="ssl" listenAddr="0.0.0.0" port="443">
<negotiator type="challenge" description="@config/users"/>
</acceptor>
and client:
final String connection = serverdns + ":" + 443;
/* create login processor */
final PasswordCredentialsProvider credentialsProvider = new PasswordCredentialsProvider(user, password);
loginPostProcessor = new ConnectorCredentialsInjector(connection, credentialsProvider);
IPluginContainer.INSTANCE.addPostProcessor(loginPostProcessor);
/* create net4j config */
final IConnector connector = Net4jUtil.getConnector(IPluginContainer.INSTANCE, connectionType, connection);
final CDONet4jSessionConfiguration config = CDONet4jUtil.createNet4jSessionConfiguration();
config.setConnector(connector);
config.setRepositoryName(repositoryName);
session = config.openNet4jSession();
It fails.
The same code with tcp acceptor works fine.
Has anyone the same problem? I use ne new version with TLS 1.3 from git.
Alexander
[Updated on: Tue, 20 September 2022 13:45]
Report message to a moderator