On Tue, 2020-12-15 at 19:05 +0000, Stefan Michael Guenther via Users wrote: > Hello, > > in previous versions of CipherMail it was possible to import > certificates with the following command: > > cd /usr/share/djigzo > java -cp djigzo.jar mitm.application.djigzo.tools.CertStore --import- > keys --dir /path/to/certs/ --keystore-password SeCrEt > > This fails in the current version 4.10.0 (virtual appliance): > > Error: Could not find or load main class > mitm.application.djigzo.tools.CertStore > > Is this import no longer available? /usr/share/djigzo-gateway- > console/lib/djigzo.jar still contains CertStore.class
We have refactored certain parts and all jar files are now placed in the lib dir. To run the cert store tool use the following command: java -cp '/usr/share/djigzo/lib/*' mitm.application.djigzo.tools.CertStore Kind regards, Martijn Brinkers > When I add the path to the jar file, I only get another error: > > java -cp /usr/share/djigzo-gateway-console/lib/djigzo.jar > mitm.application.djigzo.tools.CertStore --import-keys --dir > /path/to/certs/ --keystore-password SeCrEt > Error: A JNI error has occurred, please check your installation and > try again > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/commons/cli/MissingArgumentException > at java.lang.Class.getDeclaredMethods0(Native Method) > at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) > at java.lang.Class.privateGetMethodRecursive(Class.java:3048) > at java.lang.Class.getMethod0(Class.java:3018) > at java.lang.Class.getMethod(Class.java:1784) > at > sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:650 > ) > at > sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:632) > Caused by: java.lang.ClassNotFoundException: > org.apache.commons.cli.MissingArgumentException > at java.net.URLClassLoader.findClass(URLClassLoader.java:382) > at java.lang.ClassLoader.loadClass(ClassLoader.java:418) > at > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) > at java.lang.ClassLoader.loadClass(ClassLoader.java:351) > ... 7 more > > > Thanks your any hints or suggstions. > > Regards, > > Stefan
