đĨ install-cert
Concurrently imports a specific certificate asset into all discovered or designated JDK target truststores.
Usage
jdkcerts install-cert --cert <PATH> --alias <ALIAS> [options]
Options
| Option | Type | Description | Default |
|---|---|---|---|
--cert <PATH> |
Required | Local filesystem path to the target certificate (.pem, .crt, etc.) |
|
--alias <TEXT> |
Required | The target lookup entry alias to assign inside the truststore. | |
--keystore-password <TEXT> |
Optional | The protection password guarding the targeted cacerts file. | changeit |
--custom-jdk-paths <VALUE> |
Optional | Limits execution to specific, comma-separated absolute JDK home paths. | |
--dry-run |
Flag | Simulates processing and previews updates without applying disk changes. |
Examples
# Preview modifications safely
jdkcerts install-cert --cert /path/to/corp-ca.pem --alias corporate-root --dry-run
# Commit global installation
jdkcerts install-cert --cert /path/to/corp-ca.pem --alias corporate-root
# Restrict to specific JDK installations
jdkcerts install-cert --cert /path/to/corp-ca.pem --alias corporate-root \
--custom-jdk-paths "/Users/you/.sdkman/candidates/java/11.0.28-sem, /Users/you/.sdkman/candidates/java/8.0.472-zulu"