Maven Auto Certificate Generator Plugin

Maven plugin to generate certificates in compilation time

License

License

Categories

Categories

Auto Application Layer Libs Code Generators
GroupId

GroupId

com.github.yadickson
ArtifactId

ArtifactId

autocert
Last Version

Last Version

2.0.2
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Maven Auto Certificate Generator Plugin
Maven plugin to generate certificates in compilation time
Project URL

Project URL

https://github.com/yadickson/autocert
Project Organization

Project Organization

Yadickson Soto
Source Code Management

Source Code Management

https://github.com/yadickson/autocert

Download autocert

How to add to project

<plugin>
    <groupId>com.github.yadickson</groupId>
    <artifactId>autocert</artifactId>
    <version>2.0.2</version>
</plugin>

Dependencies

compile (12)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.5.2
org.apache.maven : maven-artifact jar 3.5.2
org.apache.maven : maven-core jar 3.5.2
org.apache.maven : maven-compat jar 3.5.2
org.apache.maven.plugin-tools : maven-plugin-tools-api jar 3.5.2
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.5.2
org.apache.maven : maven-project jar 2.2.1
org.bouncycastle : bcpkix-jdk15to18 jar 1.64
org.bouncycastle : bcprov-jdk15to18 jar 1.64
org.bouncycastle : bcprov-ext-jdk15to18 jar 1.64
com.google.guava : guava jar 29.0-jre
javax.inject : javax.inject jar 1

test (9)

Group / Artifact Type Version
commons-codec : commons-codec jar 1.11
org.assertj : assertj-core jar 3.9.1
junit : junit jar 4.13.1
org.jmockit : jmockit jar 1.37
org.mockito : mockito-core jar 1.10.19
org.powermock : powermock-core jar 1.7.4
org.powermock : powermock-module-junit4 jar 1.7.4
org.powermock : powermock-api-mockito jar 1.7.4
org.jacoco : org.jacoco.agent jar 0.8.3

Project Modules

There are no modules declared in this project.

Maven Auto Certificate Generator Plugin

TravisCI Status Codecov Status Central OSSRH Central Maven

Maven plugin to generate certificate resources in compilation time.

POM properties

<properties>
    <maven.compiler.source>1.7</maven.compiler.source>
    <maven.compiler.target>1.7</maven.compiler.target>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

POM plugin config

<plugin>
    <groupId>com.github.yadickson</groupId>
    <artifactId>autocert</artifactId>
    <version>...</version>
    <executions>
        <execution>
            <goals>
                <goal>generator</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <pubFile>...</pubFile>
        <keyFile>...</keyFile>
        <certFile>...</certFile>
        <algorithm>...</algorithm>
        <signature>...</signature>
        <keySize>...</keySize>
        <years>...</years>
        <issuer>...</issuer>
        <subject>...</subject>
        <directoryName>...</directoryName>
        <outputDirectory>...</outputDirectory>
    </configuration>
</plugin>

pubFile (default: pub.pem)

Public file name.

keyFile (default: key.pem)

Private file name.

certFile (default: cert.pem)

Certificate file name.

algorithm (default: RSA)

RSA
EC
ECDSA
ECDH

signature (default: SHA256withRSA)

SHA256withRSA
SHA256withECDSA

keySize (default: 1024)

RSA [1024, 2048, 4096, ..]
EC, ECDSA, ECDH [256, 384, 521]

years (default: 10)

Years validation time

>= 1

issuer (default: domain)

Issuer DN

subject (default: main)

Subject DN

directoryName (default: keys)

Directory name inside of outputDirectory.

outputDirectory (default: ${project.build.directory}/generated-resources)

Resource output directory folder.

Command line support

$ mvn clean package -Dautocert.pubFile=... -Dautocert.keyFile=... -Dautocert.certFile=... -Dautocert.algorithm=... -Dautocert.signature=... -Dautocert.keySize=... -Dautocert.years=... -Dautocert.issuer=... -Dautocert.subject=... -Dautocert.directoryName=... -Dautocert.outputDirectory=...

License

GPL-3.0 © Yadickson Soto

Versions

Version
2.0.2
2.0.1
2.0.0
1.1.0
1.0.1
1.0.0