[ 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