From 11c8c2ddbad26c1e4eff98ba10f01934f24a5819 Mon Sep 17 00:00:00 2001 From: Emmanuel Bourg Date: Fri, 5 Jan 2024 10:17:52 +0100 Subject: [PATCH] Quote the name parameter in the SunPKCS11 configuration of the SafeNet eToken (#192) --- jsign-core/src/main/java/net/jsign/SafeNetEToken.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsign-core/src/main/java/net/jsign/SafeNetEToken.java b/jsign-core/src/main/java/net/jsign/SafeNetEToken.java index 82bc32bd..b57233ee 100644 --- a/jsign-core/src/main/java/net/jsign/SafeNetEToken.java +++ b/jsign-core/src/main/java/net/jsign/SafeNetEToken.java @@ -53,7 +53,7 @@ static String getSunPKCS11Configuration() { if (!library.exists()) { throw new ProviderException("SafeNet eToken PKCS11 module is not installed (" + library + " is missing)"); } - String configuration = "--name=SafeNet eToken\nlibrary = \"" + library.getAbsolutePath().replace("\\", "\\\\") + "\"\n"; + String configuration = "--name=\"SafeNet eToken\"\nlibrary = \"" + library.getAbsolutePath().replace("\\", "\\\\") + "\"\n"; try { long slot = getTokenSlot(library); if (slot >= 0) {