Changeset 1400 for trunk


Ignore:
Timestamp:
Oct 28, 2008, 10:53:30 PM (16 years ago)
Author:
broder
Message:

Generate the VNC server certificates at install time

Location:
trunk/packages/invirt-vnc-server
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-vnc-server/debian/changelog

    r1399 r1400  
    22
    33  * Cleanup the init script to use /lib/init/std-init.sh
     4  * Generate the SSL certificates at install-time
    45
    5  -- Evan Broder <broder@mit.edu>  Tue, 28 Oct 2008 20:48:38 -0400
     6 -- Evan Broder <broder@mit.edu>  Tue, 28 Oct 2008 21:19:14 -0400
    67
    78invirt-vnc-server (0.0.1) unstable; urgency=low
  • trunk/packages/invirt-vnc-server/debian/invirt-vnc-server.postinst

    r1388 r1400  
    2121case "$1" in
    2222    configure)
    23         if [ -z "$2" ]; then
    24             echo "Please be sure to copy vncproxy.crt and vncproxykey.pem into /usr/share/invirt-vnc-server/"
    25         fi
    2623        mkdir -p /etc/invirt/secrets
     24        if ! [ -e /etc/invirt/secrets/vnc.pem ]; then
     25            openssl genrsa -out /etc/invirt/secrets/vnc.pem 1024 >/dev/null
     26        fi
     27       
     28        if ! [ -e /etc/invirt/secrets/vnc.crt ]; then
     29            openssl req -new -x509 -nodes -sha1 -subj '/' -key /etc/invirt/secrets/vnc.pem \
     30                > /etc/invirt/secrets/vnc.crt
     31        fi
     32       
    2733        if ! [ -e /etc/invirt/secrets/vnc-key ]; then
    2834            openssl rand -base64 33 >/etc/invirt/secrets/vnc-key
  • trunk/packages/invirt-vnc-server/setup.py

    r1389 r1400  
    2121    packages = ['invirt.vnc'],
    2222    package_dir = {'invirt': 'python'},
    23     scripts=['invirt-vnc-server', 'invirt-vnc-authtoken']
     23    scripts=['invirt-vnc-server', 'invirt-vnc-authtoken', 'invirt-vnc-getcert']
    2424)
Note: See TracChangeset for help on using the changeset viewer.