JKS Integration Guide
This guide outlines the steps to install, configure, and use the CertSecure CLI Agent for managing certificates, integrating with Java KeyStore (JKS), and enabling automated certificate rotation.
Prerequisites
Before proceeding, ensure the following:
- You have downloaded the latest certsecure_cli_agent.exe and configure.exe.
- The IP address or hostname of the CertSecure Backend server is known and reachable.
- Java Runtime Environment (JRE) is installed (for JKS-related operations).
- Necessary network ports are open for agent-backend communication (default: 443/HTTPS).
- On Windows, administrative rights may be required for configuration and JKS file access.
Step-by-Step Guide
-
Download and Extract the Agent
- Download certsecure_cli_agent.exe and configure.exe from the official CertSecure distribution.
- Move both files to a working directory of your choice.
- Ensure execution permissions if required (especially on non-Windows systems using Wine or similar).
-
Configure the Agent
- Run the configuration tool: ./configure.exe
-
Follow on-screen prompts to complete setup:
- Server IP Address:- IP of the CertSecure Backend.
- Registration Token:- A valid registration token is available from the CertSecure Manager UI portal
- Click on “Create Registration Token.” → Copy the token and paste it in the CLI agent console.
- Base Directory:- Path where the downloaded certificates should be stored.
Note: Configuration is stored persistently and only needs to be completed once unless changes are required.
-
Use the CLI Agent
- Launch the agent: certsecure_cli_agent.exe
-
Available operations:
- Request and download certificates
- View certificate metadata
- Integrate certificates into a Java KeyStore (JKS)
- Push CA certificates into JKS
- Enable automated certificate renewal (rotation)
-
Java KeyStore (JKS) Integration
During CLI usage:
-
When prompted:
- Provide the path to the target JKS file
- Enter the JKS password
-
The CLI agent will:
- Insert the downloaded certificate(s)
- Push CA certificates for establishing trust
-
-
Manage Certificate Rotation
- Use the CLI interface to enable auto-renewal.
- The agent will monitor expiration dates and trigger renewals automatically.
-
Reconfigure the Agent (If needed)
To update the saved configuration: ./configure.exe
-
Connectivity Requirements
- Ensure outbound HTTPS connectivity from the agent system to the CertSecure Backend.
-
If firewalls are enabled:
- Open required ports (typically 443)
- Allow the agent executable through security rules
- Ensure proxies or SSL interception mechanisms do not block agent communication.