Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with Using the Default SSL Context in WSO2 APIM #3583

Open
sajith-madhusanka opened this issue Feb 10, 2025 · 0 comments
Open

Issues with Using the Default SSL Context in WSO2 APIM #3583

sajith-madhusanka opened this issue Feb 10, 2025 · 0 comments

Comments

@sajith-madhusanka
Copy link

Current Limitation

We have recently identified an issue where a behavioral change in a third-party Java agent (e.g., AppDynamics) deployed within the same JVM process as the WSO2 APIM server causes the default SSL context to be initialized with the JVM's instrumented keystore.Since the third-party Java client specifies the default SSL context before starting the APIM server, and the default SSL context object follows a singleton pattern, it does not reinitialize based on the APIM server configuration. The APIM server correctly sets the javax.net.ssl.trustStore system property with the truststore information defined in its configuration. However, due to the singleton pattern followed in the default SSL context initialization, this system property is not utilized in this scenario. Due to this, internal component communication that relies on the default SSL context to establish the connection socket factory fails with an SSL handshake failure (unable to find a valid certificate path).

Suggested Improvement

Improve the relevant internal components (e.g., Binary Transport, internal service invocations triggered during APIM portal logging, etc.) to define a custom SSL context using the client-truststore.jks specified in the APIM server configuration, ensuring that the default SSL context is not used.

Version

4.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant