Self-Sign HowTo? (fwd)

Ed Arizona edg@arizonaed.com
Tue, 8 Jul 2003 09:46:00 -0400 (EDT)


---------- Forwarded message ----------
Date: Mon, 7 Jul 2003 14:47:22 -0400 (EDT)
From: Ed Arizona <edg@arizonaed.com>
To: Mike Vanecek <mind_list@mm-vanecek.cc>
Subject: Re: Self-Sign HowTo?


Hello,

I've been half heartedly trying to sign my applet for ... well
forever.  hehehe   Since I am way behind the times in the latest java
developments, I'm confused as to where I get "keytool" and "jarsigner" and
stuff.

I downloaded j2sdk v1.4.1 (yeah I know 1.4.2 is out but... ) but it
doesn't have a "jarsigner" and the "keytool" binary complains that
"libjvm.so failed because /var/tmp/j2..../libjvm.so: symbol sem_wait,
version GLIBC_2.1 not defined in file libpthread.so.0 with link time
reference"

Now also realize that this box is old as sin.  It's highly possible that
GLIBC version 2.1 isn't on this box.

Any comments?  Any help would be apprecaited.

Thanks,

-Ed.

ps--what benefits are there to signing the darn thing?


On Sun, 6 Jul 2003, Mike Vanecek wrote:

> I am upgrading to Mindterm 2.3.1
>
> On Mon, 02 Jun 2003 08:06:03 -0400, Dave Johnson wrote
> > Here is how I did it on a Redhat linux 8.0 box with Java SDK 1.4
> > installed (I got the RPM from java.sun.com).
> >
> > 1. Get the jar.
> >
> > wget http://www.appgate.com/mindterm/MindTerm-2.3.1/mindterm_2.3.1-bin.zip
> > unzip mindterm_2.3.1-bin.zip
>
> Did this. I am using Mindterm with the latest version of Openwebmail. Hence, I
> installed everything in /var/www/data/openwebmail/applets/mindterm2.
>
> > mv mindterm.jar mindtermfull.jar
>
> This is not needed with OWM - the name is left as mindterm.jar.
>
> > 2. Create a self-signed (dummy) certificate.
> >
> > keytool -genkey -keystore mykeystore -alias myalias
> >
> > keytool -selfcert -keystore mykeystore -alias myalias
> >
> > 3. Sign your jar with your dummy certificate.
> >
> > jarsigner -keystore mykeystore mindtermfull.jar myalias
>
> While in the mindterm2 folder, I did
>
> /usr/java/j2sdk1.4.2/bin/keytool -genkey -keystore mykeystore -alias myalias
> /usr/java/j2sdk1.4.2/bin/keytool -selfcert -keystore mykeystore -alias myalias
> /usr/java/j2sdk1.4.2/bin/jarsigner -keystore mykeystore mindterm.jar myalias
>
> which created mykeystore in the mindterm2 folder.
>
> > 4. Use the HTML code as previously posted (e.g. edit index.html)
> >
> > <html>
> > <head>
> > <title>SSH Java Applet</title>
> > <meta content="text/html" http-equiv=Content-Type>
> > </head>
> > <body>
> > <br>
> > <center>
> > <h1>Loading SSH Applet</h1>
> > </center>
> >
> > <applet>
> <param name="height"	value="1">
> <param name="width"	value="1">
> <param name="code"	value="com.mindbright.application.MindTerm.class">
> <param name="codeBase"	value="./">
> <param name="archive"	value="mindterm.jar">
> <param name="port"	value="22">
> <param name="cipher"	value="3des">
> <param name="alive" 	value="10">
> <param name="term-type"	value="xterm-color">
> <param name="geometry"	value="80x24">
> <param name="sepframe"	value="true">
> <param name="quiet"	value="true">
> <param name="cmdsh"	value="false">
> <param name="autoprops"	value="none">
> <param name="verbose"	value="false">
> <param name="idhost"	value="false">
> <param name="debug"	value="false">
> <param name="bg-color"	value="white">
> <param name="fg-color"	value="black">
> <param name="cursor-color" value="i_green">
> <param name="font-size"	value="16">
> <param name="copy-select" value="true">
> <param name="paste-button" value="right">
> <param name="visual-bell" value="true">
> <param name="backspace-send" value="BS">
> <param name="delete-send" value="DEL">
> <param name="server" value="domain.name.tld">
> > </applet>
> > </body>
> > </html>
> >
> > 5. Put the jar in the same directory as your html file.
>
> In the case of OWM, it is in mindterm2 folder (the html is called ssh2.html).
>
>
> > cp mindtermfull.jar /var/www/html/
> > chmod a+r /var/www/html/mindtermfull.jar /var/www/html/index.html
>
> Running it with OWM, so that step is not needed.
>
> Click Terminal in OWM, and it starts using Moz 1.3 or IE 6 and does its normal
> thing. However, even though it is self signed, I still get:
>
> File operations disabled ... and copy/paste outside of the terminal no longer
> works.
>
> Any ideas??
>
>
>
> _______________________________________________
> Mindterm-users mailing list
> Mindterm-users@mindterm.appgate.com
> http://mindterm.appgate.com/mailman/listinfo/mindterm-users
>