Now i used:
from multiverse.server.engine import *
from multiverse.server.util import *
ms = MasterServer.getMasterServer()
#ms.setTCPPort(9005)
#ms.setRDPPort(9010)
# Uncomment if you want to set a log level for this process
# that is different from the server's default log level
#Log.setLogLevel(1)
pair = SecureTokenUtil.generateMasterKeyPair()
encodedPrivKey = SecureTokenUtil.encodeMasterPrivateKey(12, pair.getPrivate())
SecureTokenManager.getInstance().initMaster(encodedPrivKey)
Servers don't tell Errors, but when i start my Client, the Sampleworld LOG login.manager.out write this:
ERROR [2013-06-27 11:08:24,254] main SecureTokenManager.registerMasterPublicKey: key already exists in table keyId=0xc
ERROR [2013-06-27 11:08:24,315] main ScriptManager.runPYFile: file=../config/common/login_manager.py Traceback (innermost last):
File "../config/common/login_manager.py", line 46, in ?
at multiverse.server.util.SecureTokenManager.registerMasterPublicKey(SecureTokenManager.java:430)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: master public already exists in table keyId=0xc
at org.python.core.Py.JavaError(Unknown Source)
at org.python.core.Py.JavaError(Unknown Source)
at org.python.core.PyReflectedFunction.__call__(Unknown Source)
at org.python.core.PyMethod.__call__(Unknown Source)
at org.python.core.PyObject.__call__(Unknown Source)
at org.python.core.PyInstance.invoke(Unknown Source)
at org.python.pycode._pyx3.f$0(../config/common/login_manager.py:46)
at org.python.pycode._pyx3.call_function(../config/common/login_manager.py)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyCode.call(Unknown Source)
at org.python.core.Py.runCode(Unknown Source)
at multiverse.server.engine.ScriptManager.runPYFile(ScriptManager.java:209)
at multiverse.server.engine.ScriptManager.runFile(ScriptManager.java:122)
at multiverse.server.engine.Engine.processPostScripts(Engine.java:555)
at multiverse.server.engine.Engine.main(Engine.java:410)
I think its only a problem with the Keys.
I readed that i have to put in the Keys into /Config/common/login_manager.py too, but if it generates its own keys, where can i find them ???
Another Question, there are "pubKeys" and "privKeys". Where can i find them ?
PrivKeys for Master i found, but where to put the "PubKeys" ???
Please, someone help me