diff --git a/scripts/common/keys/ssl-keys.py b/scripts/common/keys/ssl-keys.py new file mode 100644 index 00000000000..4ef50b04cb0 --- /dev/null +++ b/scripts/common/keys/ssl-keys.py @@ -0,0 +1,47 @@ +#!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + + +# Copies keys that enable SSH communication with system vms +# $1 = new public key +# $2 = new private key +''' +All imports go here... +''' +from subprocess import call +import socket +import sys +import os + +def generateSSLKey(outputPath): + hostName = socket.gethostbyname(socket.gethostname()) + keyFile = outputPath + os.sep + "cloud.keystore" + print("HostName = %s" % hostName) + print("OutputPath = %s" % keyFile) + dname='cn="Cloudstack User",ou="' + hostName + '",o="' + hostName + '",c="Unknown"'; + print("dname = %s" % dname) + return_code = call(["keytool", "-genkey", "-keystore", keyFile, "-storepass", "vmops.com", "-keypass", "vmops.com", "-keyalg", "RSA", "-validity", "3650", "-dname", dname]) + print("SSL key generated is : %s" % return_code) + +argsSize=len(sys.argv) +if argsSize != 2: + print("Usage: ssl-keys.py ") + sys.exit(None) +sslKeyPath=sys.argv[1] + +generateSSLKey(sslKeyPath) \ No newline at end of file diff --git a/scripts/installer/windows/acs.wxs b/scripts/installer/windows/acs.wxs index adb2b6c23c8..9456a5a265f 100644 --- a/scripts/installer/windows/acs.wxs +++ b/scripts/installer/windows/acs.wxs @@ -131,13 +131,6 @@ - - - @@ -149,7 +142,7 @@ - + @@ -189,24 +182,29 @@ - + - + Property="TOMCATDIRECTORY1" Execute="commit" Return="check" /> + + NOT Installed - NOT Installed + NOT Installed NOT Installed - NOT Installed + NOT Installed + NOT Installed - + \ No newline at end of file