Quantcast
Channel: David Ghedini
Viewing all articles
Browse latest Browse all 21

DSpace Handle Server: java.lang.Exception: Incorrect passphrase

$
0
0
The solution is provided by Rafael Carreres Paredes at

http://osdir.com/ml/db.dspace.user/2007-07/msg00300.html

I had a bit of trouble locating it, however, so hopefully this will help the next person:

After issuing './bin/start-handle-server' there is no error displayed but handle server is not running.

The /dspace/log/handle-server.log shows:


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:


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):


 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'


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.

Viewing all articles
Browse latest Browse all 21

Trending Articles