\ \ / / | | | | \ | | / ____| | |_ _|
\ \ / /_ _ _ _| | |_| \| |______| | | | | |
\ \/ / _` | | | | | __| . ` |______| | | | | |
\ / (_| | |_| | | |_| |\ | | |____| |____ _| |_
\/ \__,_|\__,_|_|\__|_| \_| \_____|______|_____|
A command-line tool designed as a test field for working with certificates and interacting with the VaultN API.
- Generate new certificates
- Export certificates to a file
- Upload certificates to the VaultN API
- Manage VaultN API keys
- Retrieve and display VaultN connections
- List, delete, validate, and get information about certificates
- Open IntelliJ IDEA.
- Go to
File > New > Project from Version Control > Git
. - Enter the repository URL and clone the project.
- Open the Maven tool window in IntelliJ IDEA (
View > Tool Windows > Maven
). - Click on the
Reload All Maven Projects
button to ensure all dependencies are downloaded. - Run the
clean
andinstall
goals:- Right-click on
clean
underLifecycle
and selectRun 'clean'
. - Right-click on
install
underLifecycle
and selectRun 'install'
.
- Right-click on
- Navigate to the
CLI.java
file in thesrc/main/java/org/tillrd
directory. - Right-click on the
CLI.java
file and selectRun 'CLI.main()'
.
Ensure you have the following installed:
- Java JDK 11 or later
- Maven
git clone <repository-url>
cd VaultNApp
mvn clean install
java -cp target/vaultn-cli-1.0-SNAPSHOT.jar org.tillrd.CLI
After starting the application, you will be presented with a menu. Enter the number corresponding to the action you want to perform:
- Generate Certificate: Generates a new certificate and stores it in a keystore.
- Export Certificate: Exports the generated certificate to a specified file path.
- Upload Certificate: Uploads the exported certificate to the VaultN API.
- Enter API Key: Prompts you to enter your VaultN API key.
- Get Connections: Retrieves and displays your VaultN connections using the API key.
- List Certificates: Lists all certificates available in VaultN.
- Delete Certificate: Deletes a specific certificate from VaultN.
- Validate Certificate: Validates a specific certificate using VaultN API.
- Get Certificate Info: Retrieves detailed information about a specific certificate.
- Help: Displays the help message.
- Exit: Exits the application.
This project is licensed under the MIT License.