Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F26AA106A8 for ; Fri, 12 Jul 2013 09:37:49 +0000 (UTC) Received: (qmail 56077 invoked by uid 500); 12 Jul 2013 09:37:49 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 56062 invoked by uid 500); 12 Jul 2013 09:37:49 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 56053 invoked by uid 500); 12 Jul 2013 09:37:49 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 55926 invoked by uid 99); 12 Jul 2013 09:37:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jul 2013 09:37:49 +0000 Date: Fri, 12 Jul 2013 09:37:49 +0000 (UTC) From: "Wei Zhou (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (CLOUDSTACK-3362) upload Custom SSL Certificate failed on UI MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-3362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wei Zhou closed CLOUDSTACK-3362. -------------------------------- Resolution: Fixed > upload Custom SSL Certificate failed on UI > ------------------------------------------ > > Key: CLOUDSTACK-3362 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3362 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Affects Versions: 4.1.0, 4.2.0 > Reporter: Wei Zhou > Assignee: Wei Zhou > > I tried to use my SSL certificate, but failed. > (1) When I input both certificate and private key, it returned "Failed to update SSL Certificate" message, without any log in management-server.log > I think it is because of the length of keys. So I removed some characters from private key. > (2) After I removed some characters from private key, it returned another message "Received value -----BEGIN CERTIFICATE----- *************-----END CERTIFICATE----- for parameter certificate is invalid, contains illegal ASCII non-printable characters" > I think it is because the url was not encoded, so I added todb in ui/scripts/ui-custom/physicalResources.js > diff --git a/ui/scripts/ui-custom/physicalResources.js b/ui/scripts/ui-custom/physicalResources.js > index 529adcf..7dc40ea 100644 > --- a/ui/scripts/ui-custom/physicalResources.js > +++ b/ui/scripts/ui-custom/physicalResources.js > @@ -82,8 +82,8 @@ > $.ajax({ > url: createURL('uploadCustomCertificate'), > data: { > - certificate: args.data.certificate, > - privatekey: args.data.privatekey, > + certificate: todb(args.data.certificate), > + privatekey: todb(args.data.privatekey), > domainsuffix: args.data.domainsuffix > }, > dataType: 'json', > After that, CLOUDSTACK-3244 appeared. > I tested on master branch, but I think 4.1.0 and 4.2 have the same issue. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira