You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "daviftorres (via GitHub)" <gi...@apache.org> on 2026/03/23 16:47:13 UTC

[I] Error tying to register ISO/Template with DirectDownload over HTTPS with Let's Encrypt [cloudstack]

daviftorres opened a new issue, #12878:
URL: https://github.com/apache/cloudstack/issues/12878

   ### problem
   
   When using the "Direct Download" feature for an ISO or Template (bypassing Secondary Storage), the Agent fails to verify Let's Encrypt certificates due to the absence of Let's Encrypt’s main CA certificate.
   
   > Note: Let's Encrypt is widely used on the internet (>50% of all certificates).
   
   ACS currently loads and trusts certificates exclusively from `/etc/cloudstack/agent/cloud.jks` and does not fall back to Java (`/usr/lib/jvm/java-17-openjdk-amd64/lib/security/cacerts`) or the system store (`/etc/ssl/certs/ca-certificates.crt`). Both of these contain the missing certificate (**ISRG Root X1**), which has been in use since 2015.
   
   See: https://letsencrypt.org/certificates/
   
   <img width="840" height="433" alt="Image" src="https://github.com/user-attachments/assets/15e380dc-45d9-4cf0-9f56-47b5ba37d98c" />
   
   **ISRG Root X1** is the current root of the trust chain (valid until 2030), after which it will be replaced by **ISRG Root X2**.
   
   **Recommendation:** Add a fallback to Java’s trust store to avoid maintaining an ever-changing list of certificates.
   
   **Alternative:** As a short-term fix, include the missing CA certificate (https://letsencrypt.org/certs/isrgrootx1.pem) in `/etc/cloudstack/agent/cloud.jks` for the next release, while a more sustainable solution is developed.
   
   ### versions
   
   We are running ACS 4.20.2 on Ubuntu 24.04. However, this issue likely affects all versions starting from 4.19, when the feature to bypass Secondary Storage was introduced.
   
   Related issues and PRs:
   - https://github.com/apache/cloudstack/issues/7929
   - https://github.com/apache/cloudstack/pull/7693/changes
   - https://github.com/apache/cloudstack/pull/7923/changes
   - https://github.com/apache/cloudstack/pull/7932/changes
   - https://github.com/apache/cloudstack/pull/11113/changes
   
   ### The steps to reproduce the bug
   
   1. When registering an ISO or Template for Direct Download, use any HTTPS URL whose TLS certificate is issued by Let's Encrypt.
   
   ### What to do about it?
   
   As a workaround, the following command can be run for each Zone to add the missing certificate. Note that this introduces additional manual steps for platform maintenance:
   
   ```
   cmk upload templatedirectdownloadcertificate hypervisor="KVM" name="isrg-root-x1-2" certific
   ate="$(curl -s https://letsencrypt.org/certs/isrgrootx1.pem)" zoneid="00000000-0000-0000-00000-000000000000"
   ```


-- 
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: commits-unsubscribe@cloudstack.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Error tying to register ISO/Template with DirectDownload over HTTPS with Let's Encrypt [cloudstack]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #12878:
URL: https://github.com/apache/cloudstack/issues/12878#issuecomment-5628116557

   This issue is stale because it has been open for 120 days with no activity. It may be removed by administrators of this project at any time. Remove the stale label or comment to request for removal of it to prevent this.


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Error tying to register ISO/Template with DirectDownload over HTTPS with Let's Encrypt [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #12878:
URL: https://github.com/apache/cloudstack/issues/12878#issuecomment-6447544341

   yes @kiranchavala , target does not mean hit though. :/ 


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Error tying to register ISO/Template with DirectDownload over HTTPS with Let's Encrypt [cloudstack]

Posted by "kiranchavala (via GitHub)" <gi...@apache.org>.
kiranchavala commented on issue #12878:
URL: https://github.com/apache/cloudstack/issues/12878#issuecomment-6442487970

   @DaanHoogland can we tarrget this for 25 release i found similar issue with direct download and also i believe we should support letencrypt  https://letsencrypt.org/ as CA in cloud.jks
   
   


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Error tying to register ISO/Template with DirectDownload over HTTPS with Let's Encrypt [cloudstack]

Posted by "kiranchavala (via GitHub)" <gi...@apache.org>.
kiranchavala commented on issue #12878:
URL: https://github.com/apache/cloudstack/issues/12878#issuecomment-4124197015

   Thanks @daviftorres  able to reproduce the issue 
   
   


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Error tying to register ISO/Template with DirectDownload over HTTPS with Let's Encrypt [cloudstack]

Posted by "kiranchavala (via GitHub)" <gi...@apache.org>.
kiranchavala commented on issue #12878:
URL: https://github.com/apache/cloudstack/issues/12878#issuecomment-4123185662

   @daviftorres could you please try after installing the aria2 package on the kvm hosts
   
   https://aria2.github.io/
   
   
   https://docs.cloudstack.apache.org/en/4.20.1.0/installguide/hypervisor/kvm.html#secondary-storage-bypass


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org