Krikri::PluginHelpers::JavaCertCommand
JavaCertCommand - builds the keytool/openssl command lines community.general.java_cert runs, mirroring the real module's helpers (_check_cert_present, delete_cert, import_cert_path, import_pkcs12_path, _export_public_cert_from_pkcs12, _download_cert_url, _get_digest_from_x509_file, and build_proxy_options). Pure string plumbing so the exact argv shapes are unit-testable without a JVM (or a keystore); the plugin itself executes them.
Class methods
_check_cert_present: PEM dump of the alias to stdout; the password goes over keytool's stdin, never argv.
_export_public_cert_from_pkcs12 - no -noprompt (the real module's export command doesn't pass it; the password goes over stdin either way).
_get_digest_from_x509_file's two steps: extract the first certificate (PEM first, DER fallback), then hash it. Split into the two commands so the plugin can branch on the extract rc the way the real module does.
_download_cert_url
import_cert_path
import_pkcs12_path
_get_keystore_type_keytool_parameters
build_proxy_options: honors https_proxy/no_proxy environment variables (the real module reads urllib's getproxies()); Java proxy flags go to the JVM with -J, nonProxyHosts entries are '|' separated with leading dots rewritten to '*.'.