XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Home
    2. LucienLassalle
    LucienLassalleL Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 6
    • Groups 4

    LucienLassalle

    @LucienLassalle

    Vates 🪐 XCP-ng Team Security Team
    3
    Reputation
    8
    Profile views
    6
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    LucienLassalle Unfollow Follow
    Security Team Vates 🪐 XCP-ng Team Global Moderator

    Best posts made by LucienLassalle

    • RE: Adding new host to pool fails - Stunnel SSL certiticate verification failure

      @Bryanvh Looking at the code, I saw that an exchange was taking place via this certificate.

      So when you told me that the master certificate was missing, I tried to put myself in the same situation as you (by removing the certificate) and trying to join the pool.
      Having encountered the same error as you, I determined that running these commands fixed the problem.

      Indeed, I think the upgrade from 8.2 to 8.3 is the cause. To be more precise, a change occurred in the XAPI during the certificate exchange in version 8.2, and I think it's possible that your 8.2 host wasn't up to date when it upgraded to 8.3 (I'm not sure).

      In any case, I'm glad your problem is solved.

      posted in XCP-ng
      LucienLassalleL
      LucienLassalle
    • RE: Adding new host to pool fails - Stunnel SSL certiticate verification failure

      @Bryanvh I think I've managed to reproduce the issue. The fact that the master's certificate is missing from /etc/stunnel/certs-pool/ seems to be the problem.

      On the master, run xe host-refresh-server-certificate host=$(hostname) and then xe pool-certificate-sync.

      Then, if you run ls -l /etc/stunnel/certs-pool, you should see a certificate with the same name as your master's UUID. It should end with .pem. If it ends with .new.pem, I recommend copying the certificate, removing the .new (which can apparently cause problems).

      You should then be able to join the pool from your host.

      I hope this worked. Please let me know if it works.
      Respectfully,

      posted in XCP-ng
      LucienLassalleL
      LucienLassalle

    Latest posts made by LucienLassalle

    • RE: Adding new host to pool fails - Stunnel SSL certiticate verification failure

      @Bryanvh No problem 🙂

      The issue you encountered wasn't very clear. Therefore, I've proposed a change to the XAPI to make the error more explicit (this will likely be implemented in future XAPI releases).

      So instead of SSL Certification failure the message will be: POOL_JOINING_MASTER_CERTIFICATE_NOT_IN_POOL_BUNDLE.

      Thank you very much for your patience and for bringing this issue to our attention.

      References:
      https://github.com/xapi-project/xen-api/pull/7112

      LucienLassalle opened this pull request in xapi-project/xen-api

      closed xapi: Improve error reporting when pool join fails on TLS verification #7112

      posted in XCP-ng
      LucienLassalleL
      LucienLassalle
    • RE: Adding new host to pool fails - Stunnel SSL certiticate verification failure

      @Bryanvh Looking at the code, I saw that an exchange was taking place via this certificate.

      So when you told me that the master certificate was missing, I tried to put myself in the same situation as you (by removing the certificate) and trying to join the pool.
      Having encountered the same error as you, I determined that running these commands fixed the problem.

      Indeed, I think the upgrade from 8.2 to 8.3 is the cause. To be more precise, a change occurred in the XAPI during the certificate exchange in version 8.2, and I think it's possible that your 8.2 host wasn't up to date when it upgraded to 8.3 (I'm not sure).

      In any case, I'm glad your problem is solved.

      posted in XCP-ng
      LucienLassalleL
      LucienLassalle
    • RE: Adding new host to pool fails - Stunnel SSL certiticate verification failure

      @Bryanvh I think I've managed to reproduce the issue. The fact that the master's certificate is missing from /etc/stunnel/certs-pool/ seems to be the problem.

      On the master, run xe host-refresh-server-certificate host=$(hostname) and then xe pool-certificate-sync.

      Then, if you run ls -l /etc/stunnel/certs-pool, you should see a certificate with the same name as your master's UUID. It should end with .pem. If it ends with .new.pem, I recommend copying the certificate, removing the .new (which can apparently cause problems).

      You should then be able to join the pool from your host.

      I hope this worked. Please let me know if it works.
      Respectfully,

      posted in XCP-ng
      LucienLassalleL
      LucienLassalle
    • RE: cifs-utils LPE (CVE-2026-46243) / 8.3 dom0 vulnerability inquiry

      @Rod-G Hello,

      We are indeed aware of this vulnerability on the Kernel. But I still thank you for this message, it shows that the community is attentive to the subject of safety on our products.

      I also fixed the PoC, and I managed to reproduce the flaw. I also took the opportunity to start making a fix.

      You highlighted it, but this security flaw is mitigated by respecting our best practices as well as the fact that we are a hypervisor which must keep restricted access.

      For vulnerabilities like CopyFail, DirtyFrag, Fragnesia, we have just released the fix. The blog post is here: https://xcp-ng.org/blog/2026/06/02/june-2026-updates-1-for-xcp-ng-8-3-lts/

      This being similar, there is a good chance that we will fix it and give the same severity.

      I would also like to anticipate the question of why a fix has not already been included in the security update released today. Our procedure aims for security but also stability, we pass a CI to avoid regressions, as well as a user testing period. With a deadline of less than a day, this would not have been possible.

      Just a quick general reminder, but if you find a security flaw and want to report it to us, the best thing to do is to contact our email: security [at] this domain name.

      I hope I was able to give you the most complete answer, don't hesitate if anything is missing.
      Respectfully,

      posted in XCP-ng
      LucienLassalleL
      LucienLassalle
    • RE: Adding new host to pool fails - Stunnel SSL certiticate verification failure

      @Bryanvh Thank you for your feedback,
      Your previous certificates look correct. I have not been able to reproduce the issue on my side, but I will try to diagnose it based on the code.

      [MASTER]
      I have a few preliminary commands. The first one is to retrieve the MASTER_UUID:
      cat /etc/xensource-inventory | grep INSTALLATION_UUID | cut -d'=' -f2 | tr -d "'"

      Then we can compare fingerprints between the master certificate and the one stored for the pool:
      openssl x509 -in /etc/xensource/xapi-pool-tls.pem -noout -fingerprint -sha256
      openssl x509 -in /etc/stunnel/certs-pool/{MASTER_UUID}.pem -noout -fingerprint -sha256
      (please replace {MASTER_UUID} with the value retrieved above)

      Normally, both fingerprints should match.
      Also check that the CA bundle exists and is not empty:
      ls -l /etc/stunnel/xapi-pool-ca-bundle.pem

      If you previously ran:
      xe host-refresh-server-certificate
      you should probably run:
      xe pool-certificate-sync

      [JOINER]
      Based on the code, the first phase has already been completed. You should therefore have files under /etc/stunnel/certs-pool/, including the master certificate:
      openssl x509 -in /etc/stunnel/certs-pool/{MASTER_UUID}.pem -noout -fingerprint -sha256

      [Additional checks]
      Are all hosts synchronized to the same NTP server? date & timedatectl
      Are all hosts fully updated to XCP-ng 8.3 and rebooted after updates?
      Do you see the same error when joining the pool using XCP-ng (via Console or CLI) instead of Xen Orchestra?
      Is there any more detailed error in /var/log/xensource.log ?
      How many hosts are in your pool?
      Is stunnel running correctly on all hosts? systemctl status stunnel@xapi

      Do certificate chains validate correctly?
      openssl verify -CAfile /etc/stunnel/xapi-pool-ca-bundle.pem /etc/stunnel/certs-pool/{MASTER_UUID}.pem

      Respectfully,

      posted in XCP-ng
      LucienLassalleL
      LucienLassalle
    • RE: Adding new host to pool fails - Stunnel SSL certiticate verification failure

      @semarie I'll try to investigate to help you.

      Is it possible to run:

      • stat /etc/xensource/xapi-pool-tls.pem
      • openssl x509 -in /etc/xensource/xapi-pool-tls.pem -noout -text
      • stat /etc/xensource/xapi-ssl.pem
      • openssl x509 -in /etc/xensource/xapi-ssl.pem -noout -text

      (This file must exist; if not, I'd like the output of cat /etc/stunnel/xapi.conf.)
      And I'd like the same output for /etc/xensource/xapi-ssl.pem.

      If the certificate for /etc/xensource/xapi-pool.tls.pem has expired or it's empty, you can run:
      xe host-refresh-server-certificate host=$(hostname)
      If the certificate for /etc/xensource/xapi-ssl.pem has expired or it's empty, you can run:
      xe host-emergency-reset-server-certificate

      After running one of the two commands above, I recommend to do: xe-toolstack-restart
      (This should indeed restart the stunnel@xapi.service)

      I hope this helps.

      posted in XCP-ng
      LucienLassalleL
      LucienLassalle