Skip to content

Gracefully handle keystore load failures and reinitialize SSLManager#115

Merged
3dgiordano merged 2 commits into
developmentfrom
MTLS-IMPROVEMENTS
Jul 2, 2026
Merged

Gracefully handle keystore load failures and reinitialize SSLManager#115
3dgiordano merged 2 commits into
developmentfrom
MTLS-IMPROVEMENTS

Conversation

@3dgiordano

Copy link
Copy Markdown
Collaborator

This pull request improves the handling of keystore loading and client certificate configuration in the HTTP/2 Jetty client. The main changes include better error handling when loading the JMeter keystore, improved test setup and cleanup for keystore properties, and more explicit client configuration in tests.

Keystore loading improvements

  • Added a new loadJMeterKeyStore method to handle keystore loading with error logging and fallback if loading fails, enhancing robustness and debuggability (JMeterJettySslContextFactory.java). [1] [2]

Test enhancements

  • Updated the client certificate test to explicitly set the keystore type to PKCS12, reset the SSLManager, and use a more configurable HTTP2JettyClient constructor for better test isolation and clarity (HTTP2JettyClientTest.java).
  • Improved test cleanup by using System.clearProperty instead of setting properties to empty strings, ensuring environment variables are properly cleared after tests (HTTP2JettyClientTest.java).

@3dgiordano 3dgiordano merged commit b19f911 into development Jul 2, 2026
1 check passed
@3dgiordano 3dgiordano deleted the MTLS-IMPROVEMENTS branch July 2, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants