- Timestamp:
- Oct 29, 2008, 12:10:12 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-vnc-client/debian/invirt-update-vnc-cert
r1413 r1418 9 9 10 10 def main(): 11 subprocess.call(['kinit', '-k', 'daemon/%s' % config.web.hostname])11 call(['kinit', '-k', 'daemon/%s' % config.web.hostname]) 12 12 13 13 temp_dir = tempfile.mkdtemp() 14 14 keystore = os.path.join(temp_dir, 'trust.store') 15 15 for host in config.hosts: 16 cert = subprocess.Popen(['remctl', config.remote.hostname, 'web', 17 'vnccert', host.hostname], 18 stdout=PIPE) 16 cert = Popen(['remctl', config.remote.hostname, 'web', 'vnccert', host.hostname], 17 stdout=PIPE) 19 18 cert.wait() 20 subprocess.call(['keytool', '-import', '-noprompt', '-alias',21 host.hostname, '-keystore', keystore, '-storepass',22 'foobar'],stdin=cert.stdout)19 call(['keytool', '-import', '-noprompt', '-alias', host.hostname, 20 '-keystore', keystore, '-storepass', 'foobar'], 21 stdin=cert.stdout) 23 22 24 subprocess.call(['jar', 'uf', '/usr/share/invirt-vnc-client/VncViewer.jar',25 23 call(['jar', 'uf', '/usr/share/invirt-vnc-client/VncViewer.jar', 24 '-C', temp_dir, 'trust.store']) 26 25 27 26 shutil.rmtree(temp_dir)
Note: See TracChangeset
for help on using the changeset viewer.