cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-3362) upload Custom SSL Certificate failed on UI
Date Fri, 12 Jul 2013 08:57:55 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-3362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13706802#comment-13706802
] 

ASF subversion and git services commented on CLOUDSTACK-3362:
-------------------------------------------------------------

Commit 838cfa2bb6dadf848cf4f3090ef0ce338d0443c2 in branch refs/heads/4.2 from [~weizhou]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=838cfa2 ]

CLOUDSTACK-3362: use POST instead of GET and encode/decode cert/key in uploadCustomCertificate

                
> 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

Mime
View raw message