From d043093282eb6b066787175db686e8c5ad46848b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Kautler?= SignServer is an on-premises open source signing service developed by Keyfactor.
+ SignServer is an on-premises (or cloud) open source signing service developed by Keyfactor.
SignServer supports various signing operations handled by signer workers. Jsign requires a
Plain Signer
-worker configured with the Signing with HashiCorp Vault
Signing with Keyfactor SignServer
-CLIENTSIDEHASHING
or ALLOW_CLIENTSIDEHASHING_OVERRIDE
properties
-set to true
, and the SIGNATUREALGORITHM
property set to NONEwithRSA
or
-NONEwithECDSA
.CLIENTSIDEHASHING
property not set or set to false
or
+ALLOW_CLIENTSIDEHASHING_OVERRIDE
property set to true
, and the SIGNATUREALGORITHM
property
+set to a supported algorithm that ends in withRSA
or withECDSA
.
+It is important that the hashing algorithm that is configured for the worker is consistent with the hashing
+algorithm configured for Jsign, otherwise the signature verification will fail.
The authentication is performed by specifying the username/password or the TLS client certificate in the
-storepass
parameter. If the TLS client certificate is stored in a password protected keystore, the password
-is specified in the keypass
parameter. The keystore
parameter references the URL of the
-SignServer REST API. The alias
parameter specifies the id or the name of the worker.
storepass
parameter if authentication is necessary. If the TLS client certificate is stored in
+a password protected keystore, the password is specified in the keypass
parameter.
+The keystore
parameter references the URL of the SignServer REST API. The alias
parameter
+specifies the id or the name of the worker.
Authenticating with a username and a password:
diff --git a/jsign-crypto/src/main/java/net/jsign/KeyStoreType.java b/jsign-crypto/src/main/java/net/jsign/KeyStoreType.java index 3f92aa29..3a1196c1 100644 --- a/jsign-crypto/src/main/java/net/jsign/KeyStoreType.java +++ b/jsign-crypto/src/main/java/net/jsign/KeyStoreType.java @@ -561,14 +561,17 @@ Provider getProvider(KeyStoreBuilder params) { }, /** - * Keyfactor SignServer. This keystore requires a Plain Signer worker configured to allow client-side hashing (with - * the propertiesCLIENTSIDEHASHING
or ALLOW_CLIENTSIDEHASHING_OVERRIDE
set to true), and
- * the SIGNATUREALGORITHM
property set to NONEwithRSA
or NONEwithECDSA
.
+ * Keyfactor SignServer. This keystore requires a Plain Signer worker configured to allow server-side hashing (with
+ * the property CLIENTSIDEHASHING
not set or set to false
or
+ * ALLOW_CLIENTSIDEHASHING_OVERRIDE
set to true
), and the SIGNATUREALGORITHM
+ * property set to a supported algorithm that ends in withRSA
or withECDSA
.
+ * It is important that the hashing algorithm that is configured for the worker is consistent with the hashing
+ * algorithm configured for Jsign, otherwise the signature verification will fail.
*
* The authentication is performed by specifying the username/password or the TLS client certificate in the - * storepass parameter. If the TLS client certificate is stored in a password protected keystore, the password is - * specified in the keypass parameter. The keystore parameter references the URL of the SignServer REST API. The - * alias parameter specifies the id or the name of the worker.
+ * storepass parameter if authentication is necessary. If the TLS client certificate is stored in a password + * protected keystore, the password is specified in the keypass parameter. The keystore parameter references + * the URL of the SignServer REST API. The alias parameter specifies the id or the name of the worker. */ SIGNSERVER(false, false) { @Override diff --git a/jsign-crypto/src/main/java/net/jsign/jca/SignServerSigningService.java b/jsign-crypto/src/main/java/net/jsign/jca/SignServerSigningService.java index fc39f87a..cd6797fa 100644 --- a/jsign-crypto/src/main/java/net/jsign/jca/SignServerSigningService.java +++ b/jsign-crypto/src/main/java/net/jsign/jca/SignServerSigningService.java @@ -94,7 +94,13 @@ public List