Replace native tool deps (keytool/openssl/certbot) with pure Java APIs#403
Open
Replace native tool deps (keytool/openssl/certbot) with pure Java APIs#403
Conversation
…e Java APIs xRTCertificateManager previously shelled out to keytool, openssl, and certbot via ProcessBuilder — unversioned system binaries that the build couldn't declare as dependencies. This replaces all three with pure Java: - keytool → java.security.KeyStore API - openssl (RSA keygen, CSR, PEM→PKCS12) → BouncyCastle + JDK crypto - certbot (ACME/Let's Encrypt) → acme4j New versioned dependencies in libs.versions.toml: acme4j 3.5.1, BouncyCastle 1.82. Extracted KeyStoreOperations utility class (no XVM dependencies) with unit tests covering self-signed cert generation, symmetric key, password storage, keystore password change, key extraction, and entry deletion. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
thegridman
approved these changes
Mar 9, 2026
ggleyzer
reviewed
Mar 9, 2026
Collaborator
There was a problem hiding this comment.
I have not tested any of it with the platform; please hold on the merge
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ProcessBuildercalls tokeytool,openssl, andcertbotinxRTCertificateManagerwith pure Java equivalentskeytool→java.security.KeyStoreAPI (JDK)openssl(RSA keygen, CSR generation, PEM→PKCS12 conversion) → BouncyCastle + JDK cryptocertbot(ACME/Let's Encrypt protocol) → acme4jlibs.versions.toml)KeyStoreOperationsutility class with no XVM runtime dependenciesNotes
certbot/certbot-stagingprovider names are preserved for backward compatibility.challengewebroot directory as beforeTest plan
KeyStoreOperationsTesttests pass (self-signed cert, symmetric key, password, password change, key extraction, deletion)🤖 Generated with Claude Code