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/11 10:01:53 UTC

[jira] [Comment Edited] (CLOUDSTACK-3362) upload Custom SSL Certificate failed on UI

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

Wei Zhou edited comment on CLOUDSTACK-3362 at 7/11/13 8:00 AM:
---------------------------------------------------------------

For the first issue, it is because of configuration in server.xml
maxHttpHeaderSize="8192" should be changed to a larger value.


    <Connector executor="tomcatThreadPool" URIEncoding="UTF-8"
               port="8080" protocol="org.apache.coyote.http11.Http11NioProtocol"
               connectionTimeout="20000" disableUploadTimeout="true"
               acceptCount="150" enableLookups="false" maxThreads="150"
               maxHttpHeaderSize="8192" redirectPort="8443" />

                
      was (Author: weizhou):
    For the first issue, it is because of configuration in server.xml
<URIEncoding="UTF-8"> should be removed.


    <Connector executor="tomcatThreadPool" URIEncoding="UTF-8"
               port="8080" protocol="org.apache.coyote.http11.Http11NioProtocol"
               connectionTimeout="20000" disableUploadTimeout="true"
               acceptCount="150" enableLookups="false" maxThreads="150"
               maxHttpHeaderSize="8192" redirectPort="8443" />

                  
> 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