Can you try using chromes built in encoder for the certificate? Thanks Amogh
On 2/6/15 10:08 AM, "Ravi Bandara" <r...@calpop.com> wrote: >Hi, > >I have been trying to upload a custom SSL certificate to my Cloudstack >setup using the API. > >I've been referencing the guide found at: > >https://cwiki.apache.org/confluence/display/CLOUDSTACK/Procedure+to+Replac >e+realhostip.com+with+Your+Own+Domain+Name > >The command I am trying to run is: > >curl >http://localhost:8096/client/api?command=uploadCustomCertificate&id=1&name >=root1&domainsuffix=mydomain.com&certificate=-----BEGIN%20CERTIFICATE----- ><customcertificate>-----END%20CERTIFICATE----- > >No matter what I do I keep getting the error: > > <?xml version="1.0" encoding="UTF-8"?><uploadcustomcertificateresponse >cloud-stack-version="4.4.2"><errorcode>431</errorcode><cserrorcode>9999</c >serrorcode><errortext>Unable >to execute API command uploadcustomcertificate due to missing parameter >certificate</errortext></uploadcustomcertificateresponse> > >Been tearing my hair out trying to figure out why it keeps erroring out on >"due to missing parameter certificate" > >Thanks, > >-- >Ravi Bandara >Operations Manager >CalPOP.com Inc >Tel: +1 (213)627-1937 >Fax:+1 (213)627-1917 >https://help.calpop.com