weizhouapache commented on issue #11112:
URL: https://github.com/apache/cloudstack/issues/11112#issuecomment-3023499636

   > [@weizhouapache](https://github.com/weizhouapache)
   > 
   > yes http and https templates without direct download are working fine
   > 
   > Getting the following exception when using the API
   > 
   > ```
   > openssl s_client -showcerts -servername download.cloudstack.org -connect 
download.cloudstack.org:443 </dev/null 2>/dev/null | \
   > awk '/-----BEGIN CERTIFICATE-----/,/-----END CERTIFICATE-----/{ print }' > 
cloudstack.pem
   > 
   > (admin) 🐱 > upload templatedirectdownloadcertificate certificate="$(cat 
cloudstack.pem)" hypervisor=kvm name=dowload 
zoneid=1b0dfd23-800e-4c72-8231-d0acb36d14f3
   > 🙈 Error: (HTTP 530, error code 9999) Cannot parse the certificate 
provided, please provide a PEM certificate. Error: Could not parse certificate: 
java.io.IOException: java.lang.IllegalArgumentException: Illegal base64 
character 24
   > ```
   
   @kiranchavala 
   you can run the command in bash shell, not in cloudmonkey
   
   ```
   cmk upload templatedirectdownloadcertificate certificate="$(cat 
cloudstack.pem)" hypervisor=kvm name=dowload 
zoneid=1b0dfd23-800e-4c72-8231-d0acb36d14f3
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to