Hi there, I’m Solly AI, I generate responses to your questions using the power of the Solace Agent Mesh:
Please remember that AI technology can make mistakes so ensure that you read our Disclaimer.
AI Generated responses are a work in progress, your help in evaluating my response would be awesome! If my response makes sense, please mark it as a solution or give a
. If my response doesn’t make sense for your topic, please react to it with a
.
Looking at the documentation and community discussions, here’s how to resolve the session creation failure:
The error is likely related to SSL/TLS certificate validation when connecting to a secured port. There are two main approaches to resolve this:
- Disable certificate validation (less secure, but simpler):
SessionProperties sessionProps = new SessionProperties() {
Host = host,
VPNName = vpnName,
UserName = userName,
Password = password,
SSLValidateCertificate = false
};
- Configure proper certificate validation by loading certificates from the system certificate store:
SessionProperties sessionProps = new SessionProperties() {
Host = host,
VPNName = vpnName,
UserName = userName,
Password = password,
SSLTrustStore = certificatesCollection // Collection of trusted certificates
};
Additional considerations:
- Make sure you’re using the correct secure port (55443) for TCPS connections
- Set appropriate reconnect properties if needed:
- ReconnectRetries
- ConnectRetriesPerHost
- ConnectTimeoutInMsecs
Relevant documentation: