Re: [jetty-user] Running Jetty On Https
Joakim Erdfelt <[email protected]> Tue, 14 Feb 2012 07:33:24 -0700
| Newsgroups | gmane.comp.java.jetty.support |
|---|---|
| Message-ID | <CAG4zZZDY+hvSkB9o785_H2xqdSJq2bjWjFbkZs5xTUZ6VhtJkw@mail.gmail.com> |
docs.codehaus.org are for Jetty 6.x only. I can see from your example command lines you are mixing Jetty 6.x and Jetty 7.x. You'll have more luck following the instructions at http://wiki.eclipse.org/Jetty/Howto/Configure_SSL -- Joakim Erdfelt [email protected] http://webtide.com | http://intalio.com (the people behind jetty and cometd) On Mon, Feb 13, 2012 at 10:08 PM, Jaya <[email protected]> wrote: > I was trying to run jetty on https. > > I was following this site http:// > http://docs.codehaus.org/display/JETTY/How+to+configure+SSL http:// > http://docs.codehaus.org/display/JETTY/How+to+configure+SSL > > When i tried to run the following command > openssl x509 -in jetty.der -inform DER -outform PEM -out jetty.crt > > I got the following error > Error opening Certificate jetty.der > 3207:error:02001002:system library:fopen:No such file or > directory:bss_file.c:356:fopen('jetty.der','r') > 3207:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:358: > unable to load certificate > > And when i tried with following command > java -classpath > > $JETTY_HOME/lib/jetty-util-7.3.1.v20110307.jar:$JETTY_HOME/lib/jetty-6.1-SNAPSHOT.jar > org.eclipse.jetty.security.PKCS12Import jetty.pkcs12 keystore > > I got following exception > Exception in thread "main" java.lang.NoClassDefFoundError: > org/eclipse/jetty/security/PKCS12Import > Caused by: java.lang.ClassNotFoundException: > org.eclipse.jetty.security.PKCS12Import > at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > at java.lang.ClassLoader.loadClass(ClassLoader.java:247) > Could not find the main class: org.eclipse.jetty.security.PKCS12Import. > Program will exit. > > Please help me to solve these issues. > > > Thanks and Regards, > Jaya > > > -- > View this message in context: > http://jetty.4.n6.nabble.com/Running-Jetty-On-Https-tp4467579p4467579.html > Sent from the Jetty Support mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > >