diff --git a/README.md b/README.md index e579fc97..736013ef 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ Jsign is free to use and licensed under the [Apache License version 2.0](https:/ * Build tools integration (Maven, Gradle, Ant) * Command line signing tool * Authenticode signing API ([Javadoc](https://javadoc.io/doc/net.jsign/jsign-core)) +* JCA security provider to use the keystores supported by Jsign with other tools such as jarsigner See https://ebourg.github.io/jsign for more information. @@ -50,6 +51,7 @@ See https://ebourg.github.io/jsign for more information. * Only one call to the Google Cloud API is performed when the version of the key is specified in the alias parameter * JVM arguments can now be passed using the `JSIGN_OPTS` environment variable * API changes: + * New `net.jsign.jca.JsignJcaProvider` JCA security provider to be used with other signing tools such as jarsigner * The signature can be removed by setting a null signature on the `Signable` object * `Signable.computeDigest(MessageDigest)` has been replaced by `Signable.computeDigest(DigestAlgorithm)` * The value of the `http.agent` system property is now appended to the user agent string set when calling REST services diff --git a/docs/index.html b/docs/index.html index 9106c42d..6eda6be2 100644 --- a/docs/index.html +++ b/docs/index.html @@ -73,6 +73,7 @@

Features

  • Build tools integration (Maven, Gradle, Ant)
  • Command line signing tool
  • Authenticode signing API (Javadoc)
  • +
  • JCA security provider to use the keystores supported by Jsign with other tools such as jarsigner
  • @@ -686,6 +687,28 @@

    API

    See the Javadoc for more details about the API.

    +

    JCA security provider

    + +

    Jsign implements a JCA security provider that can be used to sign JAR files with the jarsigner tool.

    + +

    It requires Java 11 or later, and the syntax looks like this:

    + +
    + jarsigner -J-cp -Jjsign-5.1.jar -J--add-modules -Jjava.sql \
    +           -providerClass net.jsign.jca.JsignJcaProvider \
    +           -providerArg <keystore> \
    +           -keystore NONE \
    +           -storetype <storetype> \
    +           -storepass <storepass> \
    +           -keypass <keypass> \
    +           -certchain <certfile> \
    +           application.jar <alias>
    +
    + +

    The keystore parameter must be set to NONE, the actual value of the keystore is specified +with the providerArg parameter instead.

    + +

    Downloads