OMG.... please tell me this is not the same bug that existed in 3.x? :)
Back then the API was indeed buggy when uploading certs. I just went
straight to the DB and upload the certs there. Still works to this day in
4.3 at least as we did that when we upgraded.

hth.

On Fri, Feb 6, 2015 at 1:08 PM, 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+Replace+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</cserrorcode><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
>

Reply via email to