Fork me on GitHub

Keytool Maven Plugin

This plugin provides the capability to manipulate keys and keystores using the Java KeyStore API directly, without requiring external keytool command execution. It may provide better performance, error handling, and Maven integration compared to shell-based approaches.

Goals Overview

Key Management

Certificate Management

Keystore Management

Information & Diagnostics

Requirements

  • Maven: 3.6.3 or higher
  • JDK: 8 or higher (Java 17+ recommended)

Usage

General instructions on how to use the Keytool Plugin can be found on the usage page.

For specific examples and use cases, see the comprehensive usage guide.

Version History

2.0.0 (Current)

  • Complete rewrite using Java KeyStore API instead of command-line execution
  • Migrated to JSR-330 dependency injection with Eclipse Sisu
  • Removed deprecated command-line API
  • Updated to Bouncy Castle 1.80 for certificate generation
  • All Mojos are now thread-safe
  • Comprehensive unit and integration test coverage
  • Updated documentation to Java 17

Previous Versions

Earlier versions used command-line execution of the keytool utility.