-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix loading of CryptoManager in JSSLoader scenario
When using JSSLoader to initialize JSSProvider from the java.security list, sometimes CryptoManager.getInstance() will fail. Usually this is because instance is still null, even though Security.getProvider("Mozilla-JSS") != null The error message will usually be something like: FINE: CryptoManager: loading JSS library FINE: CryptoManager: loaded JSS library from java.library.path Exception in thread "main" org.mozilla.jss.NotInitializedException at org.mozilla.jss.CryptoManager.getInstance(CryptoManager.java:365) at org.mozilla.jss.tests.SigTest.main(SigTest.java:52) Allow JSSLoader to return the new CryptoManager object, let JSSProvider store it, so that in this case, CryptoManager.getInstance() will return an initialized instance. Signed-off-by: Alexander Scheel <[email protected]>
- Loading branch information
Showing
4 changed files
with
65 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
nss.config_dir=${NSS_DB_PATH} | ||
nss.cooperate=true | ||
jss.password=${DB_PWD} | ||
jss.experimental.sslengine=true |