Skip to content

Commit 6dfa442

Browse files
committed
Release version 6.0
1 parent 5df3a06 commit 6dfa442

37 files changed

+62
-61
lines changed

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,23 @@ See https://ebourg.github.io/jsign for more information.
4848

4949
## Changes
5050

51-
#### Version 5.1 (in development)
51+
#### Version 6.0 (2024-01-17)
52+
5253
* Signing of APPX/MSIX packages has been implemented (thanks to Maciej Panek for the help)
5354
* Signing of Microsoft Dynamics 365 extension packages has been implemented
5455
* PIV cards are now supported with the new `PIV` storetype
5556
* SafeNet eToken support has been improved with automatic PKCS#11 configuration using the new `ETOKEN` storetype
5657
* The certificate chain in the file specified by the `certfile` parameter can now be in any order
5758
* VBScript, JScript and PowerShell XML files without byte order marks are now parsed as Windows-1252 instead of ISO-8859-1
58-
* The 'keystore' parameter can now be specified with the 'OPENPGP' storetype to distinguish between multiple connected devices
59+
* The `keystore` parameter can now be specified with the `OPENPGP` storetype to distinguish between multiple connected devices
5960
* The format detection based on the file extension is now case insensitive (contributed by Mathieu Delrocq)
6061
* Only one call to the Google Cloud API is performed when the version of the key is specified in the alias parameter
6162
* JVM arguments can now be passed using the `JSIGN_OPTS` environment variable
6263
* API changes:
6364
* New `net.jsign.jca.JsignJcaProvider` JCA security provider to be used with other signing tools such as jarsigner
6465
* The signature can be removed by setting a null signature on the `Signable` object
6566
* `Signable.computeDigest(MessageDigest)` has been replaced by `Signable.computeDigest(DigestAlgorithm)`
66-
* The value of the `http.agent` system property is now appended to the user agent string set when calling REST services
67+
* The value of the `http.agent` system property is now appended to the User-Agent header when calling REST services
6768
* `AuthenticodeSigner` sets the security provider automatically if the keystore used is backed by a PKCS#11 token or a cloud service
6869
* `AmazonSigningService` now supports dynamic credentials
6970
* Upgraded BouncyCastle to 1.77

docs/index.html

+13-13
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ <h3 id="ant">Ant Task</h3>
9191
<p>Here is an example showing how the signing works with Ant, using a Java keystore:</p>
9292

9393
<pre class="prettyprint lang-xml">
94-
&lt;taskdef name="jsign" classname="net.jsign.JsignTask" classpath="jsign-5.0.jar"/>
94+
&lt;taskdef name="jsign" classname="net.jsign.JsignTask" classpath="jsign-6.0.jar"/>
9595

9696
&lt;jsign file="application.exe"
9797
name="My Application"
@@ -298,7 +298,7 @@ <h3 id="maven">Maven plugin</h3>
298298
&lt;plugin>
299299
&lt;groupId>net.jsign&lt;/groupId>
300300
&lt;artifactId>jsign-maven-plugin&lt;/artifactId>
301-
&lt;version>5.0&lt;/version>
301+
&lt;version>6.0&lt;/version>
302302
&lt;executions>
303303
&lt;execution>
304304
&lt;goals>
@@ -385,7 +385,7 @@ <h3 id="gradle">Gradle plugin</h3>
385385

386386
<pre class="prettyprint lang-groovy">
387387
plugins {
388-
id 'net.jsign' version '5.0'
388+
id 'net.jsign' version '6.0'
389389
}
390390

391391
task sign {
@@ -405,7 +405,7 @@ <h3 id="gradle">Gradle plugin</h3>
405405

406406
<pre class="prettyprint lang-kotlin">
407407
plugins {
408-
id("net.jsign") version "5.0"
408+
id("net.jsign") version "6.0"
409409
}
410410

411411
task("sign") {
@@ -427,8 +427,8 @@ <h3 id="cli">Command Line Tool</h3>
427427
<p>Jsign can also be used as a command line tool, packages are available for various systems:</p>
428428

429429
<ul>
430-
<li><a href="https://github.com/ebourg/jsign/releases/download/5.0/jsign_5.0_all.deb">DEB package</a> (Debian/Ubuntu)</li>
431-
<li><a href="https://github.com/ebourg/jsign/releases/download/5.0/jsign-5.0-1.noarch.rpm">RPM package</a> (RedHat/Fedora)</li>
430+
<li><a href="https://github.com/ebourg/jsign/releases/download/6.0/jsign_6.0_all.deb">DEB package</a> (Debian/Ubuntu)</li>
431+
<li><a href="https://github.com/ebourg/jsign/releases/download/6.0/jsign-6.0-1.noarch.rpm">RPM package</a> (RedHat/Fedora)</li>
432432
<li><a href="https://community.chocolatey.org/packages/jsign/">Chocolatey package</a> (Windows)</li>
433433
<li><a href="https://formulae.brew.sh/formula/jsign">Homebrew package</a> (macOS/Linux)</li>
434434
</ul>
@@ -439,7 +439,7 @@ <h3 id="cli">Command Line Tool</h3>
439439

440440
<p>On other systems the command line is invoked by running the jar with:</p>
441441

442-
<pre> java -jar jsign-5.0.jar [OPTIONS] [FILE]...</pre>
442+
<pre> java -jar jsign-6.0.jar [OPTIONS] [FILE]...</pre>
443443

444444
<p>The parameters expected are the same as those used by the Ant task:</p>
445445

@@ -717,7 +717,7 @@ <h3 id="api">API</h3>
717717
&lt;dependency>
718718
&lt;groupId>net.jsign&lt;/groupId>
719719
&lt;artifactId>jsign-core&lt;/artifactId>
720-
&lt;version>5.0&lt;/version>
720+
&lt;version>6.0&lt;/version>
721721
&lt;/dependency>
722722
</pre>
723723

@@ -747,7 +747,7 @@ <h3 id="jca-provider">JCA security provider</h3>
747747
<p>With Java 11 or later the syntax looks like this:</p>
748748

749749
<pre>
750-
jarsigner -J-cp -Jjsign-5.1.jar -J--add-modules -Jjava.sql \
750+
jarsigner -J-cp -Jjsign-6.0.jar -J--add-modules -Jjava.sql \
751751
-providerClass net.jsign.jca.JsignJcaProvider \
752752
-providerArg &lt;keystore&gt; \
753753
-keystore NONE \
@@ -762,7 +762,7 @@ <h3 id="jca-provider">JCA security provider</h3>
762762
parameter is removed:</p>
763763

764764
<pre>
765-
jarsigner -J-cp -Jjsign-5.1.jar:$JAVA_HOME/lib/tools.jar \
765+
jarsigner -J-cp -Jjsign-6.0.jar:$JAVA_HOME/lib/tools.jar \
766766
...
767767
</pre>
768768

@@ -773,9 +773,9 @@ <h3 id="jca-provider">JCA security provider</h3>
773773
<h3 id="files">Downloads</h3>
774774

775775
<ul>
776-
<li><a href="https://github.com/ebourg/jsign/releases/download/5.0/jsign_5.0_all.deb">jsign_5.0_all.deb</a> - Jsign command line tool for Debian/Ubuntu</li>
777-
<li><a href="https://github.com/ebourg/jsign/releases/download/5.0/jsign-5.0-1.noarch.rpm">jsign-5.0-1.noarch.rpm</a> - Jsign command line tool for RedHat/Fedora</li>
778-
<li><a href="https://github.com/ebourg/jsign/releases/download/5.0/jsign-5.0.jar">jsign-5.0.jar</a> - Jsign Ant Task</li>
776+
<li><a href="https://github.com/ebourg/jsign/releases/download/6.0/jsign_6.0_all.deb">jsign_6.0_all.deb</a> - Jsign command line tool for Debian/Ubuntu</li>
777+
<li><a href="https://github.com/ebourg/jsign/releases/download/6.0/jsign-6.0-1.noarch.rpm">jsign-6.0-1.noarch.rpm</a> - Jsign command line tool for RedHat/Fedora</li>
778+
<li><a href="https://github.com/ebourg/jsign/releases/download/6.0/jsign-6.0.jar">jsign-6.0.jar</a> - Jsign Ant Task</li>
779779
</ul>
780780

781781

jsign-ant/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
<parent>
77
<groupId>net.jsign</groupId>
88
<artifactId>jsign-parent</artifactId>
9-
<version>5.1-SNAPSHOT</version>
9+
<version>6.0</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212
<name>Jsign - Authenticode signing in Java (Ant Task)</name>
13-
<version>5.1-SNAPSHOT</version>
13+
<version>6.0</version>
1414
<packaging>jar</packaging>
1515

1616
<dependencies>

jsign-cli/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
<parent>
77
<groupId>net.jsign</groupId>
88
<artifactId>jsign-parent</artifactId>
9-
<version>5.1-SNAPSHOT</version>
9+
<version>6.0</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212
<name>Jsign - Authenticode signing in Java (Command Line Tool)</name>
13-
<version>5.1-SNAPSHOT</version>
13+
<version>6.0</version>
1414
<packaging>jar</packaging>
1515

1616
<dependencies>

jsign-core/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
<parent>
77
<groupId>net.jsign</groupId>
88
<artifactId>jsign-parent</artifactId>
9-
<version>5.1-SNAPSHOT</version>
9+
<version>6.0</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212
<name>Jsign - Authenticode signing in Java (Core)</name>
13-
<version>5.1-SNAPSHOT</version>
13+
<version>6.0</version>
1414
<packaging>jar</packaging>
1515

1616
<dependencies>

jsign-core/src/main/java/net/jsign/SafeNetEToken.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
/**
3030
* Helper class for working with SafeNet eTokens.
3131
*
32-
* @since 5.1
32+
* @since 6.0
3333
*/
3434
class SafeNetEToken {
3535

jsign-core/src/main/java/net/jsign/Signable.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ default byte[] computeDigest(MessageDigest digest) throws IOException {
7777
* @param digestAlgorithm the digest algorithm to use
7878
* @return the digest of the file
7979
* @throws IOException if an I/O error occurs
80-
* @since 5.1
80+
* @since 6.0
8181
*/
8282
default byte[] computeDigest(DigestAlgorithm digestAlgorithm) throws IOException {
8383
return computeDigest(digestAlgorithm.getMessageDigest());

jsign-core/src/main/java/net/jsign/appx/APPXFile.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
* APPX/MSIX package.
5959
*
6060
* @author Emmanuel Bourg
61-
* @since 5.1
61+
* @since 6.0
6262
*/
6363
public class APPXFile extends ZipFile implements Signable {
6464

jsign-core/src/main/java/net/jsign/appx/CentralDirectory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
/**
2929
* Central directory of a ZIP file.
3030
*
31-
* @since 5.1
31+
* @since 6.0
3232
*/
3333
class CentralDirectory {
3434

jsign-core/src/main/java/net/jsign/appx/CentralDirectoryFileHeader.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
* file comment (variable size)
5252
* </pre>
5353
*
54-
* @since 5.1
54+
* @since 6.0
5555
*/
5656
class CentralDirectoryFileHeader extends ZipRecord {
5757

jsign-core/src/main/java/net/jsign/appx/EndOfCentralDirectoryRecord.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* .ZIP file comment (variable size)
3939
* </pre>
4040
*
41-
* @since 5.1
41+
* @since 6.0
4242
*/
4343
class EndOfCentralDirectoryRecord extends ZipRecord {
4444

jsign-core/src/main/java/net/jsign/appx/ExtraField.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
/**
2525
* Extra field of a ZIP entry.
2626
*
27-
* @since 5.1
27+
* @since 6.0
2828
*/
2929
class ExtraField {
3030

jsign-core/src/main/java/net/jsign/appx/LocalFileHeader.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
* extra field length 2 bytes
4040
* </pre>
4141
*
42-
* @since 5.1
42+
* @since 6.0
4343
*/
4444
class LocalFileHeader extends ZipRecord {
4545

jsign-core/src/main/java/net/jsign/appx/Zip64EndOfCentralDirectoryLocator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* total number of disks 4 bytes
3333
* </pre>
3434
*
35-
* @since 5.1
35+
* @since 6.0
3636
*/
3737
class Zip64EndOfCentralDirectoryLocator extends ZipRecord {
3838

jsign-core/src/main/java/net/jsign/appx/Zip64EndOfCentralDirectoryRecord.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
* zip64 extensible data sector (variable size)
4040
* </pre>
4141
*
42-
* @since 5.1
42+
* @since 6.0
4343
*/
4444
class Zip64EndOfCentralDirectoryRecord extends ZipRecord {
4545

jsign-core/src/main/java/net/jsign/appx/Zip64ExtendedInfoExtraField.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* Number of the disk on which this file starts 4 bytes (optional)
3535
* </pre>
3636
*
37-
* @since 5.1
37+
* @since 6.0
3838
*/
3939
class Zip64ExtendedInfoExtraField extends ExtraField {
4040

jsign-core/src/main/java/net/jsign/appx/ZipFile.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
/**
4141
* Simplified implementation of the ZIP file format, just good enough to add an entry to an existing file.
4242
*
43-
* @since 5.1
43+
* @since 6.0
4444
*/
4545
class ZipFile implements Closeable {
4646

jsign-core/src/main/java/net/jsign/appx/ZipRecord.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/**
2626
* ZIP record.
2727
*
28-
* @since 5.1
28+
* @since 6.0
2929
*/
3030
abstract class ZipRecord {
3131

jsign-core/src/main/java/net/jsign/jca/AbstractKeyStoreSpi.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
/**
2929
* Base class for JCA keystore implementations.
3030
*
31-
* @since 5.1
31+
* @since 6.0
3232
*/
3333
abstract class AbstractKeyStoreSpi extends KeyStoreSpi {
3434

jsign-core/src/main/java/net/jsign/jca/AbstractSignatureSpi.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
/**
2525
* Base class for JCA signature implementations.
2626
*
27-
* @since 5.1
27+
* @since 6.0
2828
*/
2929
abstract class AbstractSignatureSpi extends SignatureSpi {
3030

jsign-core/src/main/java/net/jsign/jca/AmazonSigningService.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public class AmazonSigningService implements SigningService {
8888
* @param region the AWS region holding the keys (for example <tt>eu-west-3</tt>)
8989
* @param credentials the AWS credentials provider
9090
* @param certificateStore provides the certificate chain for the keys
91-
* @since 5.1
91+
* @since 6.0
9292
*/
9393
public AmazonSigningService(String region, Supplier<AmazonCredentials> credentials, Function<String, Certificate[]> certificateStore) {
9494
this.certificateStore = certificateStore;

jsign-core/src/main/java/net/jsign/jca/JsignJcaProvider.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
* signature.sign();
5959
* </pre>
6060
*
61-
* @since 5.1
61+
* @since 6.0
6262
*/
6363
public class JsignJcaProvider extends Provider {
6464

jsign-core/src/main/java/net/jsign/jca/PIVCard.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
* @see <a href="https://csrc.nist.gov/pubs/sp/800/73/4/upd1/final">NIST SP 800-73-4 Interfaces for Personal Identity Verification</a>
4343
* @see <a href="https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-78-5.ipd.pdf">NIST SP 800-78-5 Cryptographic Algorithms and Key Sizes for Personal Identity Verification</a>
4444
* @see <a href="https://docs.yubico.com/yesdk/users-manual/application-piv/commands.html">Yubikey User's Manual - PIV commands</a>
45-
* @since 5.1
45+
* @since 6.0
4646
*/
4747
class PIVCard extends SmartCard {
4848

jsign-core/src/main/java/net/jsign/jca/PIVCardSigningService.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
* Signing service using an PIV smart card. PIV cards contain up to 24 keys usable to signing,
4343
* along with the X.509 certificates.
4444
*
45-
* @since 5.1
45+
* @since 6.0
4646
*/
4747
public class PIVCardSigningService implements SigningService {
4848

jsign-core/src/main/java/net/jsign/jca/ProviderService.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
/**
2424
* Provider.Service implementation using a lambda expression to create the service instances.
2525
*
26-
* @since 5.1
26+
* @since 6.0
2727
*/
2828
class ProviderService extends Provider.Service {
2929

jsign-core/src/main/java/net/jsign/jca/SmartCard.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
/**
3434
* Base class for the smart card implementations.
3535
*
36-
* @since 5.1
36+
* @since 6.0
3737
*/
3838
abstract class SmartCard {
3939

jsign-core/src/main/java/net/jsign/navx/NAVXFile.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
* Microsoft Dynamics 365 extension package (NAVX)
5454
*
5555
* @author Emmanuel Bourg
56-
* @since 5.1
56+
* @since 6.0
5757
*/
5858
public class NAVXFile implements Signable {
5959

jsign-core/src/main/java/net/jsign/navx/NAVXHeader.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* signature 4 bytes (NAVX)
3434
* </pre>
3535
*
36-
* @since 5.1
36+
* @since 6.0
3737
*/
3838
class NAVXHeader {
3939

jsign-core/src/main/java/net/jsign/navx/NAVXSignatureBlock.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* signature 4 bytes (NXSB)
3939
* </pre>
4040
*
41-
* @since 5.1
41+
* @since 6.0
4242
*/
4343
class NAVXSignatureBlock {
4444

jsign-core/src/main/java/net/jsign/script/Windows1252Extended.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* instead of turning them into a replacement character. This mimics the behavior of the Windows
3131
* MultiByteToWideChar function used by signtool to decode .vbs and .js files.
3232
*
33-
* @since 5.1
33+
* @since 6.0
3434
*/
3535
class Windows1252Extended extends Charset {
3636

jsign-gradle-plugin/example.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ buildscript {
44
}
55

66
dependencies {
7-
classpath("net.jsign:jsign-gradle-plugin:5.0")
7+
classpath("net.jsign:jsign-gradle-plugin:6.0")
88
}
99
}
1010

0 commit comments

Comments
 (0)