In invirt-vnc-server, deprecate /etc/invirt/secrets in favor of
authorEvan Broder <broder@mit.edu>
Wed, 29 Oct 2008 04:00:16 +0000 (00:00 -0400)
committerEvan Broder <broder@mit.edu>
Wed, 29 Oct 2008 04:00:16 +0000 (00:00 -0400)
/etc/invirt/vnc

svn path=/trunk/packages/invirt-vnc-server/; revision=1414

debian/changelog
debian/invirt-vnc-server.postinst
invirt-vnc-getcert
python/vnc/extauth.py

index a08c903..2a4ca80 100644 (file)
@@ -1,3 +1,9 @@
+invirt-vnc-server (0.0.4) unstable; urgency=low
+
+  * Deprecate /etc/invirt/secrets in favor of /etc/invirt/vnc
+
+ -- Evan Broder <broder@mit.edu>  Tue, 28 Oct 2008 23:58:37 -0400
+
 invirt-vnc-server (0.0.3) unstable; urgency=low
 
   * Fix a typo in the new init script
index 12f3616..f30b573 100755 (executable)
@@ -20,18 +20,18 @@ set -e
 
 case "$1" in
     configure)
-        mkdir -p /etc/invirt/secrets
-        if ! [ -e /etc/invirt/secrets/vnc.pem ]; then
-            openssl genrsa -out /etc/invirt/secrets/vnc.pem 1024 >/dev/null
+        mkdir -p /etc/invirt/vnc
+        if ! [ -e /etc/invirt/vnc/server.pem ]; then
+            openssl genrsa -out /etc/invirt/vnc/server.pem 1024 >/dev/null
         fi
         
-        if ! [ -e /etc/invirt/secrets/vnc.crt ]; then
-            openssl req -new -x509 -nodes -sha1 -subj '/' -key /etc/invirt/secrets/vnc.pem \
-                > /etc/invirt/secrets/vnc.crt
+        if ! [ -e /etc/invirt/vnc/server.crt ]; then
+            openssl req -new -x509 -nodes -sha1 -subj '/' -key /etc/invirt/vnc/server.pem \
+                > /etc/invirt/vnc/server.crt
         fi
         
-        if ! [ -e /etc/invirt/secrets/vnc-key ]; then
-            openssl rand -base64 33 >/etc/invirt/secrets/vnc-key
+        if ! [ -e /etc/invirt/vnc/token-key ]; then
+            openssl rand -base64 33 >/etc/invirt/vnc/token-key
         fi
     ;;
 
index 11b62c8..f0e14e8 100755 (executable)
@@ -3,6 +3,6 @@
 import sys
 
 try:
-    print open('/etc/invirt/secrets/vnc.crt').read()
+    print open('/etc/invirt/vnc/server.crt').read()
 except IOError, e:
     sys.exit(e.errno)
index a2cd570..a01a858 100644 (file)
@@ -20,7 +20,7 @@ import socket
 import time
 
 def getTokenKey():
-    return file('/etc/invirt/secrets/vnc-key').read().strip()
+    return file('/etc/invirt/vnc/token-key').read().strip()
 
 def getPort(name, auth_data):
     import get_port