SUSE Support

Here When You Need Us

Onboarding of Ubuntu client fails with: Could not handshake: Error in the certificate verification

This document (000021822) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Multi-Linux Manager 5.0 Server


Situation

Onboarding of Ubuntu 20.04 client (or newer) using bootstrap script fails with following error message:

E: Failed to fetch https://some.hostname/pub/repositories/ubuntu/20/4/bootstrap/dists/bootstrap/main/binary-i386/Packages Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 192.168.12.12 443]

Certificate chain is correct on top of Ubuntu client (the CA certificate used to sign the server certificate is correctly imported within the Ubuntu client). Using wget or curl against the URL mentioned above is working without any issues, only apt fails with mentioned error. 

Resolution

Check the permissions for /etc/ssl and /etc/ssl/certs whether they are set to 755 on top of affected Ubuntu client.

stat -c '%n %a' /etc/ssl /etc/ssl/certs

In case that no, change the permissions to 755 on both directories:

sudo chmod 755 /etc/ssl
sudo chmod 755 /etc/ssl/certs

Cause

Missing read permissions for "others" on top of /etc/ssl and /etc/ssl/certs directories.  

Additional Information

Triggering the apt command in debug mode on top of affected Ubuntu client using following options:

apt-get -o Debug::Acquire::https=true -o Debug::Acquire::CaInfo=/etc/ssl/certs/ca-certificates.crt update

reports also following errors:

W: https://some.hostname/pub/repositories/ubuntu/20/4/bootstrap/dists/bootstrap/main/cnf/Commands-amd64: No system certificates available. Try installing ca-certificates.

which indicates that apt’s HTTPS fetcher drops privileges into the unprivileged _apt user. If _apt can’t read the cert bundle, GnuTLS will load zero CAs and bail out with errors mentioned above.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000021822
  • Creation Date: 05-May-2025
  • Modified Date:05-May-2025
    • SUSE Manager Server
    • SUSE Manager

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.