From 85303147a02cce513cb62fc25ab728238dec69b7 Mon Sep 17 00:00:00 2001 From: runge Date: Tue, 1 May 2007 22:51:56 +0000 Subject: ssl: java viewer patches, onetimekey; x11vnc setsid/setpgrp and -cc 4 for -create --- classes/ssl/onetimekey | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100755 classes/ssl/onetimekey (limited to 'classes/ssl/onetimekey') diff --git a/classes/ssl/onetimekey b/classes/ssl/onetimekey new file mode 100755 index 0000000..5c0c26d --- /dev/null +++ b/classes/ssl/onetimekey @@ -0,0 +1,47 @@ +#!/bin/sh +# +# usage: onetimekey path/to/mycert.pem +# +# Takes an openssl cert+key pem file and turns into a long string +# for the x11vnc SSL VNC Java Viewer. +# +# The Java applet URL parameter can be oneTimeKey= where str is +# the output of this program, or can be oneTimeKey=PROMPT in which +# case the applet will ask you to paste in the string. +# +# The problem trying to be solved here is it is difficult to get +# the Java applet to have or use a keystore with the key saved +# in it. Also, as the name implies, an HTTPS server can create +# a one time key to send to the applet (the user has already +# logged in via password to the HTTPS server). + +in=$1 +der=/tmp/1time$$.der +touch $der +chmod 600 $der + +openssl pkcs8 -topk8 -nocrypt -in "$in" -out "$der" -outform der + +pbinhex=/tmp/pbinhex.$$ +cat > $pbinhex <