X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-vnc-client.git/blobdiff_plain/147ace066c877c65204a7eab283cae164514d01e..03941c5cea03203d8fcff6b1d979f23b9e01b612:/debian/invirt-update-vnc-cert diff --git a/debian/invirt-update-vnc-cert b/debian/invirt-update-vnc-cert index 177c39a..869430f 100755 --- a/debian/invirt-update-vnc-cert +++ b/debian/invirt-update-vnc-cert @@ -35,6 +35,13 @@ def main(): check_call(['jar', 'uf', jarfile, '-C', temp_dir, 'trust.store']) + if config.vnc.has_key("signing_keystore_path") \ + and os.path.exists(config.vnc.signing_keystore_path): + check_call(['jarsigner', '-keystore', + config.vnc.signing_keystore_path, + '-storepass', 'changeit', jarfile, + config.vnc.signing_key_alias]) + shutil.move(jarfile, '/usr/share/invirt-vnc-client/VncViewer.jar') shutil.rmtree(temp_dir)