Hey guys,

Thanks, I already figured it out. Somehow Eclipse does’t automatically add 
xmlsec-1.5.2.jar to the build path when you import the project. But when you 
add it manually it works fine.

Cheers

Phil



> Hi Martijn,
> 
> I am trying to add a few functionalities to the current CLITool.
> 
> 
> 1. To play with it, I tried to communicate with my backend straight from 
> Eclipse (which makes developing easier for me), but it didn’t work.
> 
> After setting my ip address protected.system.soap.server.bind=192.168.2.114  
> the CLITool works and the ProxyRequest can be created. However I get this 
> error at the condition 
> 
> „if (!usersWS.isUser(email)) {…"
> 
> =>
> 
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/apache/xml/security/Init
>       at 
> org.apache.ws.security.WSSConfig.setXmlSecIgnoreLineBreak(WSSConfig.java:380)
>       at org.apache.ws.security.WSSConfig.init(WSSConfig.java:400)
>       at org.apache.ws.security.WSSConfig.getNewInstance(WSSConfig.java:435)
>       at 
> org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor$WSS4JOutInterceptorInternal.handleMessage(WSS4JOutInterceptor.java:176)
>       at 
> org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor$WSS4JOutInterceptorInternal.handleMessage(WSS4JOutInterceptor.java:136)
>       at 
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
>       at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:530)
>       at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:463)
>       at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:366)
>       at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:319)
>       at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
>       at 
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134)
>       at com.sun.proxy.$Proxy28.isUser(Unknown Source)
>       at mitm.application.djigzo.tools.CLITool.addUser(CLITool.java:500)
>       at 
> mitm.application.djigzo.tools.CLITool.handleCommandline(CLITool.java:639)
>       at mitm.application.djigzo.tools.CLITool.main(CLITool.java:680)
> Caused by: java.lang.ClassNotFoundException: org.apache.xml.security.Init
>       at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>       at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
>       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
>       ... 16 more
> 
> 
> I am using Djigzo in a VirtualMachine in Bridged Mode for testing.
> 
> 
> 
> 2. What is the best way to find out the process of how a certificate is added 
> to a user? Through the GUI or the logs in catalina?
> 
> 
> Thank you very much for your help.
> 
> Kind regards,
> 
> Phil
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Am 22.05.2014 um 11:41 schrieb Martijn Brinkers <[email protected]>:
> 
>> Hi Philipp,
>> 
>> My apologies for the late reply. I was in the US for two weeks.
>> 
>> On 05/04/2014 05:53 PM, Philipp Setzer wrote:
>>> just a short question about the Djigzo CLI.
>>> 
>>> How can you 
>>>     - create CAs
>>>     - create user encryption certificates 
>>>     - list the current users
>>> in Djigzo over the command line?
>>> 
>>> "java -cp djigzo.jar mitm.application.djigzo.tools.CLITool —help“ doesn’t 
>>> give me any options like that.
>>> 
>>> I am intending to give the user an interface with the option to create 
>>> multiple email accounts. I also need to be able to distribute the 
>>> certificate for the encryption.
>>> 
>>> Currently I am trying to solve everything with CGIs and bash over apache. 
>>> If you think this is not the best way to approach that, I would appreciate 
>>> your opinion a lot. :-)
>> 
>> The command line tools only provide some basic functionality. For
>> example the CertManager tool allows you to import certs but not generate
>> new ones. One option would be to look at how the command line tools are
>> created and add the options you are missing. It should not be that
>> difficult if you have some experience with java. The command line tools
>> communicate with SOAP with the back-end in the same way as the GUI does.
>> 
>> Kind regards,
>> 
>> Martijn
>> 
>> 
>> -- 
>> DJIGZO email encryption
> 

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
Users mailing list
[email protected]
https://lists.djigzo.com/lists/listinfo/users

Reply via email to