Self-Sign HowTo?
Mike Vanecek
mind_list@mm-vanecek.cc
Sun, 6 Jul 2003 23:47:01 -0500
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??