You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Wei Zhou (JIRA)" <ji...@apache.org> on 2013/07/04 14:39:47 UTC
[jira] [Created] (CLOUDSTACK-3362) upload Custom SSL Certificate
failed on UI
Wei Zhou created CLOUDSTACK-3362:
------------------------------------
Summary: 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