使用ANT生成证书的时候出错

fringe-liu 发布于 2012/06/26 09:44
阅读 480
收藏 0

我想使用Ant生成CA证书,在做好build.xml,写好./bin/cli.xml

执行脚本时出现

     [java] Initializing CA
     [java] Generating rootCA keystore:
     [java] CA name: AdminRootCA
     [java] SuperAdmin CN: SuperAdmin
     [java] DN: CN=AdminRootCA,OU=SSLVPN CA Center,O=China Mobile Group Guangdong Co.\, Ltd,C=CN
     [java] CA token type: soft
     [java] CA token password: hidden
     [java] Keytype: RSA
     [java] Keyspec: 2048
     [java] Validity (days): 3650
     [java] Policy ID: null
     [java] Signature alg: SHA1WithRSA
     [java] Certificate profile: ROOTCA
     [java] CA token properties: null
     [java] Signed by: self signed
     [java] Initalizing authorization module with caid=548590678 and superadmin CN 'SuperAdmin'.
     [java] principal=sslvpnuser
     [java] credentials=pwd
     [java] security_enable=false
     [java]
     [java] javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: linux-fud5; nested exception is:
     [java]     java.net.ConnectException: Connection refused]
     [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:839)
     [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
     [java]     at javax.naming.InitialContext.lookup(InitialContext.java:392)
     [java]     at org.cesecore.jndi.JndiHelper.getRemoteSession(JndiHelper.java:81)
     [java]     at org.ejbca.core.model.util.EjbRemoteHelper.getComplexAccessControlSession(EjbRemoteHelper.java:126)
     [java]     at org.ejbca.ui.cli.ca.BaseCaAdminCommand.initAuthorizationModule(BaseCaAdminCommand.java:167)
     [java]     at org.ejbca.ui.cli.ca.CaInitCommand.execute(CaInitCommand.java:212)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.executeCommand(EjbcaEjbCli.java:118)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:80)
     [java] Caused by: java.rmi.ConnectException: Connection refused to host: linux-fud5; nested exception is:
     [java]     java.net.ConnectException: Connection refused
     [java]     at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
     [java]     at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
     [java]     at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
     [java]     at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:110)
     [java]     at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
     [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
     [java]     ... 8 more
     [java] Caused by: java.net.ConnectException: Connection refused
     [java]     at java.net.PlainSocketImpl.socketConnect(Native Method)
     [java]     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
     [java]     at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
     [java]     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
     [java]     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
     [java]     at java.net.Socket.connect(Socket.java:529)
     [java]     at java.net.Socket.connect(Socket.java:478)
     [java]     at java.net.Socket.<init>(Socket.java:375)
     [java]     at java.net.Socket.<init>(Socket.java:189)
     [java]     at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
     [java]     at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
     [java]     at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
     [java]     ... 13 more
     [java] Could not run execute method for class class org.ejbca.ui.cli.ca.CaInitCommand
     [java] org.ejbca.ui.cli.ErrorAdminCommandException: java.lang.NullPointerException
     [java]     at org.ejbca.ui.cli.ca.CaInitCommand.execute(CaInitCommand.java:324)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.executeCommand(EjbcaEjbCli.java:118)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:80)
     [java] Caused by: java.lang.NullPointerException
     [java]     at org.ejbca.ui.cli.ca.BaseCaAdminCommand.initAuthorizationModule(BaseCaAdminCommand.java:167)
     [java]     at org.ejbca.ui.cli.ca.CaInitCommand.execute(CaInitCommand.java:212)
     [java]     ... 2 more

ejbca:initVPNRootCA:
     [echo] Initializing CA with 'VPNRootCA' 'CN=China Mobile Group Guangdong Co., Ltd. VPN Root CA,O=China Mobile Group Guangdong Co.\, Ltd,OU=SSLVPN CA Center,C=CN'' soft null 2048 RSA 3650 null SHA1WithRSA -superadmincn 'SuperVpnAdmin'...
     [java] Initializing CA
     [java] Generating rootCA keystore:
     [java] CA name: VPNRootCA
     [java] SuperAdmin CN: SuperVpnAdmin
     [java] DN: CN=China Mobile Group Guangdong Co.\, Ltd. VPN Root CA,OU=SSLVPN CA Center,O=China Mobile Group Guangdong Co.\, Ltd,C=CN
     [java] CA token type: soft
     [java] CA token password: hidden
     [java] Keytype: RSA
     [java] Keyspec: 2048
     [java] Validity (days): 3650
     [java] Policy ID: null
     [java] Signature alg: SHA1WithRSA
     [java] Certificate profile: ROOTCA
     [java] CA token properties: null
     [java] Signed by: self signed
     [java] Initalizing authorization module with caid=695496221 and superadmin CN 'SuperVpnAdmin'.
     [java] principal=sslvpnuser
     [java] credentials=pwd
     [java] security_enable=false
     [java]
     [java] javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: linux-fud5; nested exception is:
     [java]     java.net.ConnectException: Connection refused]
     [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:839)
     [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
     [java]     at javax.naming.InitialContext.lookup(InitialContext.java:392)
     [java]     at org.cesecore.jndi.JndiHelper.getRemoteSession(JndiHelper.java:81)
     [java]     at org.ejbca.core.model.util.EjbRemoteHelper.getComplexAccessControlSession(EjbRemoteHelper.java:126)
     [java]     at org.ejbca.ui.cli.ca.BaseCaAdminCommand.initAuthorizationModule(BaseCaAdminCommand.java:167)
     [java]     at org.ejbca.ui.cli.ca.CaInitCommand.execute(CaInitCommand.java:212)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.executeCommand(EjbcaEjbCli.java:118)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:80)
     [java] Caused by: java.rmi.ConnectException: Connection refused to host: linux-fud5; nested exception is:
     [java]     java.net.ConnectException: Connection refused
     [java]     at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
     [java]     at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
     [java]     at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
     [java]     at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:110)
     [java]     at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
     [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
     [java]     ... 8 more
     [java] Caused by: java.net.ConnectException: Connection refused
     [java]     at java.net.PlainSocketImpl.socketConnect(Native Method)
     [java]     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
     [java]     at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
     [java]     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
     [java]     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
     [java]     at java.net.Socket.connect(Socket.java:529)
     [java]     at java.net.Socket.connect(Socket.java:478)
     [java]     at java.net.Socket.<init>(Socket.java:375)
     [java]     at java.net.Socket.<init>(Socket.java:189)
     [java]     at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
     [java]     at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
     [java]     at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
     [java]     ... 13 more
     [java] Could not run execute method for class class org.ejbca.ui.cli.ca.CaInitCommand
     [java] org.ejbca.ui.cli.ErrorAdminCommandException: java.lang.NullPointerException
     [java]     at org.ejbca.ui.cli.ca.CaInitCommand.execute(CaInitCommand.java:324)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.executeCommand(EjbcaEjbCli.java:118)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:80)
     [java] Caused by: java.lang.NullPointerException
     [java]     at org.ejbca.ui.cli.ca.BaseCaAdminCommand.initAuthorizationModule(BaseCaAdminCommand.java:167)
     [java]     at org.ejbca.ui.cli.ca.CaInitCommand.execute(CaInitCommand.java:212)
     [java]     ... 2 more
     [echo] ca getrootcert 'VPNRootCA' /opt/ejbca/p12/VPNRootCA.pem
     [java] principal=sslvpnuser
     [java] credentials=pwd
     [java] security_enable=false
     [java]
     [java] javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: linux-fud5; nested exception is:
     [java]     java.net.ConnectException: Connection refused]
     [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:839)
     [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
     [java]     at javax.naming.InitialContext.lookup(InitialContext.java:392)
     [java]     at org.cesecore.jndi.JndiHelper.getRemoteSession(JndiHelper.java:81)
     [java]     at org.ejbca.core.model.util.EjbRemoteHelper.getCaSession(EjbRemoteHelper.java:98)
     [java]     at org.ejbca.ui.cli.ca.BaseCaAdminCommand.getCertChain(BaseCaAdminCommand.java:66)
     [java]     at org.ejbca.ui.cli.ca.CaGetRootCertCommand.execute(CaGetRootCertCommand.java:53)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.executeCommand(EjbcaEjbCli.java:118)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:80)
     [java] Caused by: java.rmi.ConnectException: Connection refused to host: linux-fud5; nested exception is:
     [java]     java.net.ConnectException: Connection refused
     [java]     at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
     [java]     at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
     [java]     at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
     [java]     at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:110)
     [java]     at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
     [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
     [java]     ... 8 more
     [java] Caused by: java.net.ConnectException: Connection refused
     [java]     at java.net.PlainSocketImpl.socketConnect(Native Method)
     [java]     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
     [java]     at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
     [java]     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
     [java]     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
     [java]     at java.net.Socket.connect(Socket.java:529)
     [java]     at java.net.Socket.connect(Socket.java:478)
     [java]     at java.net.Socket.<init>(Socket.java:375)
     [java]     at java.net.Socket.<init>(Socket.java:189)
     [java]     at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
     [java]     at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
     [java]     at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
     [java]     ... 13 more
     [java] Error while getting certfificate chain from CA.
     [java] java.lang.NullPointerException
     [java]     at org.ejbca.ui.cli.ca.BaseCaAdminCommand.getCertChain(BaseCaAdminCommand.java:66)
     [java]     at org.ejbca.ui.cli.ca.CaGetRootCertCommand.execute(CaGetRootCertCommand.java:53)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.executeCommand(EjbcaEjbCli.java:118)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:80)
     [java] No CA certificate found.

ejbca:initVPNClientRootCA:
     [echo] Initializing CA with 'VPNClientRootCA' 'CN=China Mobile Group Guangdong Co., Ltd. VPNClient Root CA,O=China Mobile Group Guangdong Co., Ltd,OU=SSLVPN CA Center,C=CN' soft null 2048 RSA 3650 null SHA1WithRSA -superadmincn 'SuperVpnClientAdmin'...
     [java] Initializing CA
     [java] Generating rootCA keystore:
     [java] CA name: VPNClientRootCA
     [java] SuperAdmin CN: SuperVpnClientAdmin
     [java] DN: CN=China Mobile Group Guangdong Co.\, Ltd. VPNClient Root CA,OU=SSLVPN CA Center,O=China Mobile Group Guangdong Co.\, Ltd,C=CN
     [java] CA token type: soft
     [java] CA token password: hidden
     [java] Keytype: RSA
     [java] Keyspec: 2048
     [java] Validity (days): 3650
     [java] Policy ID: null
     [java] Signature alg: SHA1WithRSA
     [java] Certificate profile: ROOTCA
     [java] CA token properties: null
     [java] Signed by: self signed
     [java] Initalizing authorization module with caid=-682797496 and superadmin CN 'SuperVpnClientAdmin'.
     [java] principal=sslvpnuser
     [java] credentials=pwd
     [java] security_enable=false
     [java]
     [java] javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: linux-fud5; nested exception is:
     [java]     java.net.ConnectException: Connection refused]
     [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:839)
     [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
     [java]     at javax.naming.InitialContext.lookup(InitialContext.java:392)
     [java]     at org.cesecore.jndi.JndiHelper.getRemoteSession(JndiHelper.java:81)
     [java]     at org.ejbca.core.model.util.EjbRemoteHelper.getComplexAccessControlSession(EjbRemoteHelper.java:126)
     [java]     at org.ejbca.ui.cli.ca.BaseCaAdminCommand.initAuthorizationModule(BaseCaAdminCommand.java:167)
     [java]     at org.ejbca.ui.cli.ca.CaInitCommand.execute(CaInitCommand.java:212)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.executeCommand(EjbcaEjbCli.java:118)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:80)
     [java] Caused by: java.rmi.ConnectException: Connection refused to host: linux-fud5; nested exception is:
     [java]     java.net.ConnectException: Connection refused
     [java]     at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
     [java]     at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
     [java]     at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
     [java]     at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:110)
     [java]     at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
     [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
     [java]     ... 8 more
     [java] Caused by: java.net.ConnectException: Connection refused
     [java]     at java.net.PlainSocketImpl.socketConnect(Native Method)
     [java]     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
     [java]     at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
     [java]     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
     [java]     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
     [java]     at java.net.Socket.connect(Socket.java:529)
     [java]     at java.net.Socket.connect(Socket.java:478)
     [java]     at java.net.Socket.<init>(Socket.java:375)
     [java]     at java.net.Socket.<init>(Socket.java:189)
     [java]     at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
     [java]     at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
     [java]     at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
     [java]     ... 13 more
     [java] Could not run execute method for class class org.ejbca.ui.cli.ca.CaInitCommand
     [java] org.ejbca.ui.cli.ErrorAdminCommandException: java.lang.NullPointerException
     [java]     at org.ejbca.ui.cli.ca.CaInitCommand.execute(CaInitCommand.java:324)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.executeCommand(EjbcaEjbCli.java:118)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:80)
     [java] Caused by: java.lang.NullPointerException
     [java]     at org.ejbca.ui.cli.ca.BaseCaAdminCommand.initAuthorizationModule(BaseCaAdminCommand.java:167)
     [java]     at org.ejbca.ui.cli.ca.CaInitCommand.execute(CaInitCommand.java:212)
     [java]     ... 2 more
     [echo] ca getrootcert 'VPNClientRootCA' /opt/ejbca/p12/VPNClientRootCA.pem
     [java] principal=sslvpnuser
     [java] credentials=pwd
     [java] security_enable=false
     [java]
     [java] javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: linux-fud5; nested exception is:
     [java]     java.net.ConnectException: Connection refused]
     [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:839)
     [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
     [java]     at javax.naming.InitialContext.lookup(InitialContext.java:392)
     [java]     at org.cesecore.jndi.JndiHelper.getRemoteSession(JndiHelper.java:81)
     [java]     at org.ejbca.core.model.util.EjbRemoteHelper.getCaSession(EjbRemoteHelper.java:98)
     [java]     at org.ejbca.ui.cli.ca.BaseCaAdminCommand.getCertChain(BaseCaAdminCommand.java:66)
     [java]     at org.ejbca.ui.cli.ca.CaGetRootCertCommand.execute(CaGetRootCertCommand.java:53)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.executeCommand(EjbcaEjbCli.java:118)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:80)
     [java] Caused by: java.rmi.ConnectException: Connection refused to host: linux-fud5; nested exception is:
     [java]     java.net.ConnectException: Connection refused
     [java]     at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
     [java]     at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
     [java]     at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
     [java]     at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:110)
     [java]     at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
     [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
     [java]     ... 8 more
     [java] Caused by: java.net.ConnectException: Connection refused
     [java]     at java.net.PlainSocketImpl.socketConnect(Native Method)
     [java]     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
     [java]     at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
     [java]     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
     [java]     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
     [java]     at java.net.Socket.connect(Socket.java:529)
     [java]     at java.net.Socket.connect(Socket.java:478)
     [java]     at java.net.Socket.<init>(Socket.java:375)
     [java]     at java.net.Socket.<init>(Socket.java:189)
     [java]     at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
     [java]     at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
     [java]     at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
     [java]     ... 13 more
     [java] Error while getting certfificate chain from CA.
     [java] java.lang.NullPointerException
     [java]     at org.ejbca.ui.cli.ca.BaseCaAdminCommand.getCertChain(BaseCaAdminCommand.java:66)
     [java]     at org.ejbca.ui.cli.ca.CaGetRootCertCommand.execute(CaGetRootCertCommand.java:53)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.executeCommand(EjbcaEjbCli.java:118)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:80)
     [java] No CA certificate found.


 

加载中
0
鉴客
鉴客
Connection refused to host: linux-fud5
0
f
fringe-liu

                                                                                                       
linux-fud5:/opt/ejbca # ant sslvpninstallRootCA
Buildfile: /opt/ejbca/build.xml
     [echo] No custom changes to merge.
     [echo] appserver.home: /opt/jboss-5.1.0.GA
     [echo] appserver.type: jboss

fail-unless-appserver-detected:

sslvpninstallRootCA:

check:bootstrapdone:

ejbca:sslvpninstallRootCA:

ejbca:initAdminRootCA:
     [echo] Initializing CA with 'AdminRootCA' 'CN=AdminRootCA,O=China Mobile Group Guangdong Co.\, Ltd,OU=SSLVPN CA Center,C=CN' soft null 2048 RSA 3650 null SHA1WithRSA   -superadmincn 'SuperAdmin'...
     [java] Initializing CA
     [java] Generating rootCA keystore:
     [java] CA name: AdminRootCA
     [java] SuperAdmin CN: SuperAdmin
     [java] DN: CN=AdminRootCA,OU=SSLVPN CA Center,O=China Mobile Group Guangdong Co.\, Ltd,C=CN
     [java] CA token type: soft
     [java] CA token password: hidden
     [java] Keytype: RSA
     [java] Keyspec: 2048
     [java] Validity (days): 3650
     [java] Policy ID: null
     [java] Signature alg: SHA1WithRSA
     [java] Certificate profile: ROOTCA
     [java] CA token properties: null
     [java] Signed by: self signed
     [java] Initalizing authorization module with caid=548590678 and superadmin CN 'SuperAdmin'.
     [java] principal=sslvpnuser
     [java] credentials=pwd
     [java] security_enable=false
     [java] Could not run execute method for class class org.ejbca.ui.cli.ca.CaInitCommand
     [java] org.ejbca.ui.cli.ErrorAdminCommandException: java.lang.reflect.UndeclaredThrowableException
     [java]     at org.ejbca.ui.cli.ca.CaInitCommand.execute(CaInitCommand.java:324)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.executeCommand(EjbcaEjbCli.java:118)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:80)
     [java] Caused by: java.lang.reflect.UndeclaredThrowableException
     [java]     at $Proxy2.initializeAuthorizationModule(Unknown Source)
     [java]     at org.ejbca.ui.cli.ca.BaseCaAdminCommand.initAuthorizationModule(BaseCaAdminCommand.java:167)
     [java]     at org.ejbca.ui.cli.ca.CaInitCommand.execute(CaInitCommand.java:212)
     [java]     ... 2 more
     [java] Caused by: java.lang.ClassNotFoundException: org.jboss.resource.JBossResourceException
     [java]     at org.jboss.remoting.serialization.ClassLoaderUtility.loadClass(ClassLoaderUtility.java:103)
     [java]     at org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingClassLoader.java:86)
     [java]     at java.lang.Class.forName0(Native Method)
     [java]     at java.lang.Class.forName(Class.java:247)
     [java]     at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:179)
     [java]     at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574)
     [java]     at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
     [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
     [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
     [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
     [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
     [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
     [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
     [java]     at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObjectVersion2_2(JavaSerializationManager.java:238)
     [java]     at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:138)
     [java]     at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:123)
     [java]     at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.versionedRead(MicroSocketClientInvoker.java:1220)
     [java]     at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:850)
     [java]     at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:165)
     [java]     at org.jboss.remoting.Client.invoke(Client.java:1724)
     [java]     at org.jboss.remoting.Client.invoke(Client.java:629)
     [java]     at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
     [java]     at $Proxy3.invoke(Unknown Source)
     [java]     at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207)
     [java]     at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)
     [java]     at $Proxy2.initializeAuthorizationModule(Unknown Source)
     [java]     at org.ejbca.ui.cli.ca.BaseCaAdminCommand.initAuthorizationModule(BaseCaAdminCommand.java:167)
     [java]     at org.ejbca.ui.cli.ca.CaInitCommand.execute(CaInitCommand.java:212)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.executeCommand(EjbcaEjbCli.java:118)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:80)
     [java]     at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:72)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
     [java]     at $Proxy3.invoke(Unknown Source)
     [java]     at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207)
     [java]     at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)
     [java]     ... 5 more

ejbca:initVPNRootCA:
     [echo] Initializing CA with 'VPNRootCA' 'CN=China Mobile Group Guangdong Co., Ltd. VPN Root CA,O=China Mobile Group Guangdong Co.\, Ltd,OU=SSLVPN CA Center,C=CN'' soft null 2048 RSA 3650 null SHA1WithRSA -superadmincn 'SuperVpnAdmin'...
     [java] Initializing CA
     [java] Generating rootCA keystore:
     [java] CA name: VPNRootCA
     [java] SuperAdmin CN: SuperVpnAdmin
     [java] DN: CN=China Mobile Group Guangdong Co.\, Ltd. VPN Root CA,OU=SSLVPN CA Center,O=China Mobile Group Guangdong Co.\, Ltd,C=CN
     [java] CA token type: soft
     [java] CA token password: hidden
     [java] Keytype: RSA
     [java] Keyspec: 2048
     [java] Validity (days): 3650
     [java] Policy ID: null
     [java] Signature alg: SHA1WithRSA
     [java] Certificate profile: ROOTCA
     [java] CA token properties: null
     [java] Signed by: self signed
     [java] Initalizing authorization module with caid=695496221 and superadmin CN 'SuperVpnAdmin'.
     [java] principal=sslvpnuser
     [java] credentials=pwd
     [java] security_enable=false
     [java] Could not run execute method for class class org.ejbca.ui.cli.ca.CaInitCommand
     [java] org.ejbca.ui.cli.ErrorAdminCommandException: java.lang.reflect.UndeclaredThrowableException
     [java]     at org.ejbca.ui.cli.ca.CaInitCommand.execute(CaInitCommand.java:324)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.executeCommand(EjbcaEjbCli.java:118)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:80)
     [java] Caused by: java.lang.reflect.UndeclaredThrowableException
     [java]     at $Proxy2.initializeAuthorizationModule(Unknown Source)
     [java]     at org.ejbca.ui.cli.ca.BaseCaAdminCommand.initAuthorizationModule(BaseCaAdminCommand.java:167)
     [java]     at org.ejbca.ui.cli.ca.CaInitCommand.execute(CaInitCommand.java:212)
     [java]     ... 2 more
     [java] Caused by: java.lang.ClassNotFoundException: org.jboss.resource.JBossResourceException
     [java]     at org.jboss.remoting.serialization.ClassLoaderUtility.loadClass(ClassLoaderUtility.java:103)
     [java]     at org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingClassLoader.java:86)
     [java]     at java.lang.Class.forName0(Native Method)
     [java]     at java.lang.Class.forName(Class.java:247)
     [java]     at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:179)
     [java]     at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574)
     [java]     at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
     [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
     [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
     [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
     [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
     [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
     [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
     [java]     at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObjectVersion2_2(JavaSerializationManager.java:238)
     [java]     at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:138)
     [java]     at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:123)
     [java]     at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.versionedRead(MicroSocketClientInvoker.java:1220)
     [java]     at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:850)
     [java]     at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:165)
     [java]     at org.jboss.remoting.Client.invoke(Client.java:1724)
     [java]     at org.jboss.remoting.Client.invoke(Client.java:629)
     [java]     at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
     [java]     at $Proxy3.invoke(Unknown Source)
     [java]     at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207)
     [java]     at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)
     [java]     at $Proxy2.initializeAuthorizationModule(Unknown Source)
     [java]     at org.ejbca.ui.cli.ca.BaseCaAdminCommand.initAuthorizationModule(BaseCaAdminCommand.java:167)
     [java]     at org.ejbca.ui.cli.ca.CaInitCommand.execute(CaInitCommand.java:212)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.executeCommand(EjbcaEjbCli.java:118)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:80)
     [java]     at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:72)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
     [java]     at $Proxy3.invoke(Unknown Source)
     [java]     at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207)
     [java]     at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)
     [java]     ... 5 more
     [echo] ca getrootcert 'VPNRootCA' /opt/ejbca/p12/VPNRootCA.pem
     [java] principal=sslvpnuser
     [java] credentials=pwd
     [java] security_enable=false
     [java] Error while getting certfificate chain from CA.
     [java] java.lang.reflect.UndeclaredThrowableException
     [java]     at $Proxy2.getCAInfo(Unknown Source)
     [java]     at org.ejbca.ui.cli.ca.BaseCaAdminCommand.getCertChain(BaseCaAdminCommand.java:66)
     [java]     at org.ejbca.ui.cli.ca.CaGetRootCertCommand.execute(CaGetRootCertCommand.java:53)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.executeCommand(EjbcaEjbCli.java:118)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:80)
     [java] Caused by: java.lang.ClassNotFoundException: org.jboss.resource.JBossResourceException
     [java]     at org.jboss.remoting.serialization.ClassLoaderUtility.loadClass(ClassLoaderUtility.java:103)
     [java]     at org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingClassLoader.java:86)
     [java]     at java.lang.Class.forName0(Native Method)
     [java]     at java.lang.Class.forName(Class.java:247)
     [java]     at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:179)
     [java]     at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574)
     [java]     at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
     [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
     [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
     [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
     [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
     [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
     [java]     at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObjectVersion2_2(JavaSerializationManager.java:238)
     [java]     at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:138)
     [java]     at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:123)
     [java]     at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.versionedRead(MicroSocketClientInvoker.java:1220)
     [java]     at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:850)
     [java]     at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:165)
     [java]     at org.jboss.remoting.Client.invoke(Client.java:1724)
     [java]     at org.jboss.remoting.Client.invoke(Client.java:629)
     [java]     at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
     [java]     at $Proxy3.invoke(Unknown Source)
     [java]     at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207)
     [java]     at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)
     [java]     at $Proxy2.getCAInfo(Unknown Source)
     [java]     at org.ejbca.ui.cli.ca.BaseCaAdminCommand.getCertChain(BaseCaAdminCommand.java:66)
     [java]     at org.ejbca.ui.cli.ca.CaGetRootCertCommand.execute(CaGetRootCertCommand.java:53)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.executeCommand(EjbcaEjbCli.java:118)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:80)
     [java]     at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:72)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
     [java]     at $Proxy3.invoke(Unknown Source)
     [java]     at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207)
     [java]     at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)
     [java]     ... 5 more
     [java] No CA certificate found.

ejbca:initVPNClientRootCA:
     [echo] Initializing CA with 'VPNClientRootCA' 'CN=China Mobile Group Guangdong Co., Ltd. VPNClient Root CA,O=China Mobile Group Guangdong Co., Ltd,OU=SSLVPN CA Center,C=CN' soft null 2048 RSA 3650 null SHA1WithRSA -superadmincn 'SuperVpnClientAdmin'...
     [java] Initializing CA
     [java] Generating rootCA keystore:
     [java] CA name: VPNClientRootCA
     [java] SuperAdmin CN: SuperVpnClientAdmin
     [java] DN: CN=China Mobile Group Guangdong Co.\, Ltd. VPNClient Root CA,OU=SSLVPN CA Center,O=China Mobile Group Guangdong Co.\, Ltd,C=CN
     [java] CA token type: soft
     [java] CA token password: hidden
     [java] Keytype: RSA
     [java] Keyspec: 2048
     [java] Validity (days): 3650
     [java] Policy ID: null
     [java] Signature alg: SHA1WithRSA
     [java] Certificate profile: ROOTCA
     [java] CA token properties: null
     [java] Signed by: self signed
     [java] Initalizing authorization module with caid=-682797496 and superadmin CN 'SuperVpnClientAdmin'.
     [java] principal=sslvpnuser
     [java] credentials=pwd
     [java] security_enable=false
     [java] Could not run execute method for class class org.ejbca.ui.cli.ca.CaInitCommand
     [java] org.ejbca.ui.cli.ErrorAdminCommandException: java.lang.reflect.UndeclaredThrowableException
     [java]     at org.ejbca.ui.cli.ca.CaInitCommand.execute(CaInitCommand.java:324)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.executeCommand(EjbcaEjbCli.java:118)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:80)
     [java] Caused by: java.lang.reflect.UndeclaredThrowableException
     [java]     at $Proxy2.initializeAuthorizationModule(Unknown Source)
     [java]     at org.ejbca.ui.cli.ca.BaseCaAdminCommand.initAuthorizationModule(BaseCaAdminCommand.java:167)
     [java]     at org.ejbca.ui.cli.ca.CaInitCommand.execute(CaInitCommand.java:212)
     [java]     ... 2 more
     [java] Caused by: java.lang.ClassNotFoundException: org.jboss.resource.JBossResourceException
     [java]     at org.jboss.remoting.serialization.ClassLoaderUtility.loadClass(ClassLoaderUtility.java:103)
     [java]     at org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingClassLoader.java:86)
     [java]     at java.lang.Class.forName0(Native Method)
     [java]     at java.lang.Class.forName(Class.java:247)
     [java]     at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:179)
     [java]     at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574)
     [java]     at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
     [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
     [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
     [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
     [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
     [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
     [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
     [java]     at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObjectVersion2_2(JavaSerializationManager.java:238)
     [java]     at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:138)
     [java]     at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:123)
     [java]     at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.versionedRead(MicroSocketClientInvoker.java:1220)
     [java]     at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:850)
     [java]     at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:165)
     [java]     at org.jboss.remoting.Client.invoke(Client.java:1724)
     [java]     at org.jboss.remoting.Client.invoke(Client.java:629)
     [java]     at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
     [java]     at $Proxy3.invoke(Unknown Source)
     [java]     at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207)
     [java]     at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)
     [java]     at $Proxy2.initializeAuthorizationModule(Unknown Source)
     [java]     at org.ejbca.ui.cli.ca.BaseCaAdminCommand.initAuthorizationModule(BaseCaAdminCommand.java:167)
     [java]     at org.ejbca.ui.cli.ca.CaInitCommand.execute(CaInitCommand.java:212)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.executeCommand(EjbcaEjbCli.java:118)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:80)
     [java]     at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:72)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
     [java]     at $Proxy3.invoke(Unknown Source)
     [java]     at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207)
     [java]     at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)
     [java]     ... 5 more
     [echo] ca getrootcert 'VPNClientRootCA' /opt/ejbca/p12/VPNClientRootCA.pem
     [java] principal=sslvpnuser
     [java] credentials=pwd
     [java] security_enable=false
     [java] Error while getting certfificate chain from CA.
     [java] java.lang.reflect.UndeclaredThrowableException
     [java]     at $Proxy2.getCAInfo(Unknown Source)
     [java]     at org.ejbca.ui.cli.ca.BaseCaAdminCommand.getCertChain(BaseCaAdminCommand.java:66)
     [java]     at org.ejbca.ui.cli.ca.CaGetRootCertCommand.execute(CaGetRootCertCommand.java:53)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.executeCommand(EjbcaEjbCli.java:118)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:80)
     [java] Caused by: java.lang.ClassNotFoundException: org.jboss.resource.JBossResourceException
     [java]     at org.jboss.remoting.serialization.ClassLoaderUtility.loadClass(ClassLoaderUtility.java:103)
     [java]     at org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingClassLoader.java:86)
     [java]     at java.lang.Class.forName0(Native Method)
     [java]     at java.lang.Class.forName(Class.java:247)
     [java]     at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:179)
     [java]     at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574)
     [java]     at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
     [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
     [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
     [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
     [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
     [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
     [java]     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
     [java]     at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObjectVersion2_2(JavaSerializationManager.java:238)
     [java]     at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:138)
     [java]     at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:123)
     [java]     at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.versionedRead(MicroSocketClientInvoker.java:1220)
     [java]     at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:850)
     [java]     at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:165)
     [java]     at org.jboss.remoting.Client.invoke(Client.java:1724)
     [java]     at org.jboss.remoting.Client.invoke(Client.java:629)
     [java]     at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
     [java]     at $Proxy3.invoke(Unknown Source)
     [java]     at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207)
     [java]     at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)
     [java]     at $Proxy2.getCAInfo(Unknown Source)
     [java]     at org.ejbca.ui.cli.ca.BaseCaAdminCommand.getCertChain(BaseCaAdminCommand.java:66)
     [java]     at org.ejbca.ui.cli.ca.CaGetRootCertCommand.execute(CaGetRootCertCommand.java:53)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.executeCommand(EjbcaEjbCli.java:118)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:80)
     [java]     at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:72)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
     [java]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     [java]     at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
     [java]     at $Proxy3.invoke(Unknown Source)
     [java]     at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207)
     [java]     at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)
     [java]     ... 5 more
     [java] No CA certificate found.

BUILD SUCCESSFUL
Total time: 25 seconds

 

给/etc/hosts加了个对应127.0.0。1

问题继续出现

返回顶部
顶部