bug 13470: check the correct old certificate

status 13470: resolved fixed
Reviewed-by: anthony
This commit is contained in:
Edison Su 2012-02-08 20:55:05 -08:00
parent 5b11e67a18
commit e6d6e3b90a
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ public class Upgrade2213to2214 implements DbUpgrade {
ResultSet rs = pstmt.executeQuery();
while (rs.next()) {
String privateKeyMd5 = rs.getString(1);
if (privateKeyMd5.equalsIgnoreCase("b2d3089241ed0ea0336efeb125dbb610")) {
if (privateKeyMd5.equalsIgnoreCase("432ea1370f57ccd774f4f36052c5fd73")) {
s_logger.debug("Need to upgrade cloudstack provided certificate");
pstmt = conn.prepareStatement("update `cloud`.`keystore` set `cloud`.`keystore`.key = ?, certificate = ? where name = 'CPVMCertificate'");
pstmt.setString(1, ConsoleProxyManagerImpl.keyContent);