cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From weiz...@apache.org
Subject git commit: updated refs/heads/4.1 to 3d1c873
Date Wed, 10 Jul 2013 10:26:06 GMT
Updated Branches:
  refs/heads/4.1 73a6aa788 -> 3d1c873db


CLOUDSTACK-3438: update CPVM SSL certificate for both Premium and non-Premium cases


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/3d1c873d
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/3d1c873d
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/3d1c873d

Branch: refs/heads/4.1
Commit: 3d1c873db445b0acfa6a599baea0a71c854779c7
Parents: 73a6aa7
Author: Wei Zhou <w.zhou@leaseweb.com>
Authored: Wed Jul 10 12:26:00 2013 +0200
Committer: Wei Zhou <w.zhou@leaseweb.com>
Committed: Wed Jul 10 12:26:00 2013 +0200

----------------------------------------------------------------------
 client/WEB-INF/web.xml                          |  2 ++
 .../consoleproxy/ConsoleProxyManagerImpl.java   | 20 ++++++++------------
 2 files changed, 10 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3d1c873d/client/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/client/WEB-INF/web.xml b/client/WEB-INF/web.xml
index da2f13c..e5c05d3 100644
--- a/client/WEB-INF/web.xml
+++ b/client/WEB-INF/web.xml
@@ -45,11 +45,13 @@
     <servlet>
         <servlet-name>apiServlet</servlet-name>
         <servlet-class>com.cloud.api.ApiServlet</servlet-class>
+        <load-on-startup>5</load-on-startup>
     </servlet>
     
     <servlet>
         <servlet-name>consoleServlet</servlet-name>
         <servlet-class>com.cloud.servlet.ConsoleProxyServlet</servlet-class>
+        <load-on-startup>6</load-on-startup>
     </servlet>
 	
 	<servlet>

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3d1c873d/server/src/com/cloud/consoleproxy/ConsoleProxyManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/consoleproxy/ConsoleProxyManagerImpl.java b/server/src/com/cloud/consoleproxy/ConsoleProxyManagerImpl.java
index 831c812..13c438a 100755
--- a/server/src/com/cloud/consoleproxy/ConsoleProxyManagerImpl.java
+++ b/server/src/com/cloud/consoleproxy/ConsoleProxyManagerImpl.java
@@ -1763,20 +1763,16 @@ public class ConsoleProxyManagerImpl extends ManagerBase implements
ConsoleProxy
     @Override
     public void startAgentHttpHandlerInVM(StartupProxyCommand startupCmd) {
         StartConsoleProxyAgentHttpHandlerCommand cmd = null;
-        if (_configDao.isPremium()) {
-            String storePassword = String.valueOf(_random.nextLong());
-            byte[] ksBits = _ksMgr.getKeystoreBits(ConsoleProxyManager.CERTIFICATE_NAME,
ConsoleProxyManager.CERTIFICATE_NAME, storePassword);
 
-            assert (ksBits != null);
-            if (ksBits == null) {
-                s_logger.error("Could not find and construct a valid SSL certificate");
-            }
-            cmd = new StartConsoleProxyAgentHttpHandlerCommand(ksBits, storePassword);
-            cmd.setEncryptorPassword(getEncryptorPassword());
-        } else {
-            cmd = new StartConsoleProxyAgentHttpHandlerCommand();
-            cmd.setEncryptorPassword(getEncryptorPassword());
+        String storePassword = String.valueOf(_random.nextLong());
+        byte[] ksBits = _ksMgr.getKeystoreBits(ConsoleProxyManager.CERTIFICATE_NAME, ConsoleProxyManager.CERTIFICATE_NAME,
storePassword);
+
+        assert (ksBits != null);
+        if (ksBits == null) {
+            s_logger.error("Could not find and construct a valid SSL certificate");
         }
+        cmd = new StartConsoleProxyAgentHttpHandlerCommand(ksBits, storePassword);
+        cmd.setEncryptorPassword(getEncryptorPassword());
 
         try {
             long proxyVmId = startupCmd.getProxyVmId();


Mime
View raw message