Skip to content

Commit

Permalink
Quote the name parameter in the SunPKCS11 configuration of the SafeNe…
Browse files Browse the repository at this point in the history
…t eToken (#192)
  • Loading branch information
ebourg committed Jan 5, 2024
1 parent 9d630bd commit 11c8c2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsign-core/src/main/java/net/jsign/SafeNetEToken.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 11c8c2d

Please sign in to comment.