CLOUDSTACK-4186. Signature computed while accessing VM's console is not aligned with how signature is computed for other APIs

This commit is contained in:
Likitha Shetty 2013-08-08 16:16:31 +05:30
parent bf5e86eb22
commit b7c5068327
1 changed files with 1 additions and 1 deletions

View File

@ -605,7 +605,7 @@ public class ConsoleProxyServlet extends HttpServlet {
mac.init(keySpec);
mac.update(unsignedRequest.getBytes());
byte[] encryptedBytes = mac.doFinal();
String computedSignature = Base64.encodeBase64URLSafeString(encryptedBytes);
String computedSignature = Base64.encodeBase64String(encryptedBytes);
boolean equalSig = signature.equals(computedSignature);
if (!equalSig) {
s_logger.debug("User signature: " + signature + " is not equaled to computed signature: " + computedSignature);