DSpace Handle Server: java.lang.Exception: Incorrect passphrase
After issuing ‘./bin/start-handle-server’ there is no error displayed but handle server is not running.
The /dspace/log/handle-server.log shows:
1 2 3 4 5 6 |
Enter the passphrase for this server's authentication private key: Note: Your passphrase will be displayed as it is entered Error: Incorrect passphrase (see the error log for details.) Shutting down... |
And in /handle-server/error.log:
1 2 3 4 5 6 7 |
Unable to initialize server signature object: java.lang.Exception: Incorrect passphrase java.lang.Exception: Incorrect passphrase at net.handle.hdllib.Util.decrypt(Util.java:1083) at net.handle.server.HandleServer.(HandleServer.java:306) at net.handle.server.AbstractServer.getInstance(AbstractServer.java:72) at net.handle.server.Main.initialize(Main.java:152) at net.handle.server.Main.main(Main.java:75) |
SSH and navigate to your dspace lib directory.
Navigate to your /lib directory and use the java key util as below (be sure to substitute paths for your privkey to your own):
1 |
java -cp handle-6.2.jar net.handle.apps.tools.KeyUtil /var/lib/dspace-5.4/handle-server/privkey.bin |
It starts an interactive session in which you will be asked for your password (the one you set handle configuration) and then give the option of ‘Save private key without encryption’
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
Enter the passphrase for this private key: Note: Your passphrase will be displayed as it is entered MyPassword Choose an operation: 1: Encrypt private key with passphrase 2: Save private key without encryption 3: Exit 2 Warning: data not encrypted Private key saved to file: /var/lib/dspace-5.4/dspace/handle-server/privkey.bin Choose an operation: 1: Encrypt private key with passphrase 2: Save private key without encryption 3: Exit 3 |
Check that you handle server is now running as well as logs.