truststore:generate-pkcs12
Full name:
com.github.marschall:truststore-maven-plugin:0.7.0:generate-pkcs12
Description:
Generates a PKCS12 truststore from a collection of certificates
located in a folder. Runs during a normal Maven build.
Attributes:
- Requires a Maven project to be executed.
- The goal is thread-safe and supports parallel builds.
- Binds by default to the lifecycle phase:
generate-resources
.
Optional Parameters
Name | Type | Since | Description |
---|---|---|---|
<finalName> |
String |
- |
Name of the generated truststore without a file extension. Default value is: ${project.build.finalName} . |
<outputDirectory> |
File |
- |
Directory containing the generated truststore. Default value is: ${project.build.directory}/generated-truststores . |
<password> |
String |
- |
The password to generate the truststore integrity check.
The password is optional and can be left out. This is supported out of the box on JDK 18+ and requires the following system properties on earlier versions
User property is: truststore.password . |
<sourceDirectory> |
File |
- |
The directory in which the certificates to add to the truststore
are located. Default value is: ${project.basedir}/src/main/certificates . |
Parameter Details
<finalName>
Name of the generated truststore without a file extension.
- Type:
java.lang.String
- Required:
No
- Default:
${project.build.finalName}
<outputDirectory>
Directory containing the generated truststore.
- Type:
java.io.File
- Required:
No
- Default:
${project.build.directory}/generated-truststores
<password>
The password to generate the truststore integrity check.
The password is optional and can be left out. This is supported out of the box on JDK 18+ and requires the following system properties on earlier versions
-Dkeystore.pkcs12.certProtectionAlgorithm=NONE -Dkeystore.pkcs12.macAlgorithm=NONE
- Type:
java.lang.String
- Required:
No
- User Property:
truststore.password
<sourceDirectory>
The directory in which the certificates to add to the truststore
are located.
- Type:
java.io.File
- Required:
No
- Default:
${project.basedir}/src/main/certificates