powered by Jive Software

Ubuntu server : CKR_DOMAIN_PARAMS_INVALID

**Hi
**

** When i am trying to register a new user in open fire through node-xmpp i am getting following error**

**2014.10.08 05:19:20 org.jivesoftware.openfire.nio.ConnectionHandler - ConnectionHandler reports unexpected exception for session: (SOCKET, R: /122.165.64.241:57177, L: /107.170.93.218:5222, S: 0.0.0.0/0.0.0.0:5222) **

java.lang.RuntimeException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_DOMAIN_PARAMS_INVALID

at sun.security.ssl.Handshaker.checkThrown(Handshaker.java:1287)

at sun.security.ssl.SSLEngineImpl.checkTaskThrown(SSLEngineImpl.java:513)

at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:793)

at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:761)

at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624)

at org.apache.mina.filter.support.SSLHandler.unwrap0(SSLHandler.java:668)

at org.apache.mina.filter.support.SSLHandler.unwrapHandshake(SSLHandler.java:624)

at org.apache.mina.filter.support.SSLHandler.handshake(SSLHandler.java:503)

at org.apache.mina.filter.support.SSLHandler.messageReceived(SSLHandler.java:306)

at org.apache.mina.filter.SSLFilter.messageReceived(SSLFilter.java:392)

at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(Ab stractIoFilterChain.java:299)

at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilt erChain.java:53)

at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceive d(AbstractIoFilterChain.java:648)

at org.apache.mina.common.support.AbstractIoFilterChain$HeadFilter.messageReceived (AbstractIoFilterChain.java:499)

at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(Ab stractIoFilterChain.java:299)

at org.apache.mina.common.support.AbstractIoFilterChain.fireMessageReceived(Abstra ctIoFilterChain.java:293)

at org.apache.mina.transport.socket.nio.SocketIoProcessor.read(SocketIoProcessor.java:228)

at org.apache.mina.transport.socket.nio.SocketIoProcessor.process(SocketIoProcesso r.java:198)

at org.apache.mina.transport.socket.nio.SocketIoProcessor.access$400(SocketIoProcessor.java:45)

at org.apache.mina.transport.socket.nio.SocketIoProcessor$Worker.run(SocketIoProcessor.java:485)

at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:744)

Caused by: java.security.ProviderException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_DOMAIN_PARAMS_INVALID

at sun.security.pkcs11.P11KeyPairGenerator.generateKeyPair(P11KeyPairGenerator.java:323)

at java.security.KeyPairGenerator$Delegate.generateKeyPair(KeyPairGenerator.java:687)

at sun.security.ssl.ECDHCrypt.(ECDHCrypt.java:63)

at sun.security.ssl.ServerHandshaker.setupEphemeralECDHKeys(ServerHandshaker.java:1208)

at sun.security.ssl.ServerHandshaker.trySetCipherSuite(ServerHandshaker.java:1062)

at sun.security.ssl.ServerHandshaker.chooseCipherSuite(ServerHandshaker.java:889)

at sun.security.ssl.ServerHandshaker.clientHello(ServerHandshaker.java:622)

at sun.security.ssl.ServerHandshaker.processMessage(ServerHandshaker.java:167)

at sun.security.ssl.Handshaker.processLoop(Handshaker.java:868)

at sun.security.ssl.Handshaker$1.run(Handshaker.java:808)

at sun.security.ssl.Handshaker$1.run(Handshaker.java:806)

at java.security.AccessController.doPrivileged(Native Method)

at sun.security.ssl.Handshaker$DelegatedTask.run(Handshaker.java:1227)

at org.apache.mina.filter.support.SSLHandler.doTasks(SSLHandler.java:696)

at org.apache.mina.filter.support.SSLHandler.handshake(SSLHandler.java:496)

… 16 more

Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_DOMAIN_PARAMS_INVALID

at sun.security.pkcs11.wrapper.PKCS11.C_GenerateKeyPair(Native Method)

at sun.security.pkcs11.P11KeyPairGenerator.generateKeyPair(P11KeyPairGenerator.java:314)

… 30 more

Message was edited by: Gowthaman

In my local Ubuntu system working fine, I check configuration also both are same