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.2 to 023aac8
Date Wed, 10 Jul 2013 10:24:35 GMT
Updated Branches:
  refs/heads/4.2 a81cc8a12 -> 023aac8bd


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/023aac8b
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/023aac8b
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/023aac8b

Branch: refs/heads/4.2
Commit: 023aac8bd12ccc57d9ee826e4e6282b60937e625
Parents: a81cc8a
Author: Wei Zhou <w.zhou@leaseweb.com>
Authored: Wed Jul 10 12:20:57 2013 +0200
Committer: Wei Zhou <w.zhou@leaseweb.com>
Committed: Wed Jul 10 12:23:57 2013 +0200

----------------------------------------------------------------------
 client/WEB-INF/web.xml                          |  2 ++
 .../com/cloud/consoleproxy/AgentHookBase.java   | 23 +++++++-------------
 2 files changed, 10 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/023aac8b/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/023aac8b/server/src/com/cloud/consoleproxy/AgentHookBase.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/consoleproxy/AgentHookBase.java b/server/src/com/cloud/consoleproxy/AgentHookBase.java
index 160810d..f051686 100644
--- a/server/src/com/cloud/consoleproxy/AgentHookBase.java
+++ b/server/src/com/cloud/consoleproxy/AgentHookBase.java
@@ -197,22 +197,15 @@ public abstract class AgentHookBase implements AgentHook {
     @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 {
 


Mime
View raw message