Skip to content

Conversation

@ldetmer
Copy link
Contributor

@ldetmer ldetmer commented Feb 9, 2026

This PR is the first step in stopping maintenance for custom keystore in google-api-java-client see: go/stop-keystore-api-java-client

  1. It updates GoogleUtils.getCertificateTrustStore() to first attempt to load java jdk default certs using logic similar to java's internal TrustStoreManager class before falling back to the custom keystore bundled with google-api-java-client. This is to alleviate issues with the bundled keystore having expired/missing certs

  2. Deprecates GoogleUtils.getCertificateTrustStore()

  3. Deprecates GoogleNetHttpTransport

  4. updates documentation to refer users to NetHttpTransport

Tested using GoogleNetHttpTransport.newTrustedTransport() to make call to storage API.

@ldetmer ldetmer force-pushed the use-jdk-default-certs branch from e20a107 to d1f59c2 Compare February 12, 2026 21:11
@ldetmer ldetmer marked this pull request as ready for review February 12, 2026 21:17
@ldetmer ldetmer requested a review from a team as a code owner February 12, 2026 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant