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

Azure Key Vault - SSLPeerUnverifiedException when running disabled acceptance tests with jdk11 #880

Closed
chris-j-h opened this issue Sep 3, 2019 · 0 comments · Fixed by #890
Labels
0.10.1 bug Something isn't working testing

Comments

@chris-j-h
Copy link
Collaborator

AKV tests are currently disabled for jdk11 as Tessera throws a javax.net.ssl.SSLPeerUnverifiedException: Hostname localhost not verified (no certificates) when trying to communicate with the mock AKV (WireMock) server used in the tests.

Travis's oraclejdk11 is currently jdk11.0.2. The test is reproducible locally when using jdk11.0.2. When using later versions (e.g. jdk11.0.4) the tests pass successfully.

This is a recognised issue with okhttp (used by the AKV client) and jdk11.0.2 (https://github.com/square/okhttp/issue s/4703). For further info see https://bugs.openjdk.java.net/browse/JDK-8211806 and https://bugs.openjdk.java.net/browse/JDK-8212885.

Manual testing verifies that the AKV functionality works as expected in jdk11.0.2 so this appears to be an issue only when using the mock server/self-signed certs in the acceptance tests.

Potential solutions include:

  • Investigate the TLS handshake between the AKV client and WireMock server (see openjdk issues linked above)
  • Wait for Travis to update to use a newer version of jdk11
  • Manually install a later version of jdk11 for the AKV tests
  • Try with a different mock server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.10.1 bug Something isn't working testing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants