[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Handle-info] MESSAGE_FORMAT_ERROR on pubkey authentication
Hello,
I have set up a local server with NA (as I mentioned in previous posts)
-----------
0.NA/1
-----------
and admin handle
-----------
1/ADMIN
300 HS_PUBKEY FILE <mypath>/hs/svr_1/admpub.bin
(when I use HS_SECKEY here everything works fine.)
------------
the key is encrypted with password.
Using the client library I get an authentication failure.
So I tried:
----------
# java -cp ./bin/handle.jar net.handle.apps.gui.hadmin.HandleTool
---------
There Setup->Authentication with console output:
--------
sending HDL-TCP request (version=2.1; oc=1; rc=0; snId=0 crt caCrt
noAuth 1/ADMIN [ ] [300, ]) to 127.0.0.1:2641
received HDL-TCP response: version=2.1; oc=1; rc=1; snId=0 crt caCrt
noAuth 1/ADMIN
index=300 type=HS_PUBKEY rwr- "FILE <mypath>/hs/svr_1/admpub.bin"
HandleException (MESSAGE_FORMAT_ERROR) Invalid array size
at net.handle.hdllib.Encoder.readByteArray(Encoder.java:157)
at net.handle.hdllib.Util.getPublicKeyFromBytes(Util.java:876)
at net.handle.apps.gui.hadmin.HandleTool
$CheckAuthentication.checkAuth(HandleTool.java:492)
at net.handle.apps.gui.hadmin.HandleTool
$CheckAuthentication.run(HandleTool.java:417)
at net.handle.awt.TaskIndicator.run(TaskIndicator.java:99)
at java.lang.Thread.run(Thread.java:619)
----------
Servers error log is silent about it, so probably a client problem:
----------
/hs/svr_1$ tail -F error.log
at
net.handle.server.NetworkInterface.run(NetworkInterface.java:150)
at java.lang.Thread.run(Thread.java:619)
"2007/08/03 11:15:06 CEST" 25 Started new run.
"2007/08/03 11:15:12 CEST" 50 unspecified max_handlers count, using
default: 200
"2007/08/03 11:15:12 CEST" 50 unspecified max_handlers count, using
default: 200
"2007/08/03 11:15:12 CEST" 50 unspecified max_handlers count, using
default: 200
"2007/08/03 11:15:17 CEST" 50 Error refreshing root info:
HandleException (INTERNAL_ERROR) Unable to query root info
HandleException (INTERNAL_ERROR) Unable to query root info
at
net.handle.hdllib.Configuration.refreshRootInfoFromNet(Configuration.java:458)
at net.handle.server.AbstractServer
$RootInfoUpdater.run(AbstractServer.java:93)
-------
access.log for the request:
-------
127.0.0.1 HTTP:HDL "Fri Aug 03 11:18:16 CEST 2007" 1 1 204ms 1/ADMIN
-------
Resolution access for public read without problem.
Thanks for any help!
--
Konstantin Rekk
VZG (GBV), Göttingen, Berlin
0176 2100 6000
030 29003511
skype: krekk1970
rekk@gbv.de
http://www.gbv.de
_______________________________________________
Handle-Info mailing list
Handle-Info@cnri.reston.va.us
http://www.handle.net/mailman/listinfo/handle-info