Zypper curl error 60 SSL certificate problem

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

Environment

SUSE Linux Enterprise Server 12 SP5

Situation

Zypper has "curl 60" errors while reaching a repo, but curl command works.


Zypper failure example:

servername:~ # zypper ref
Retrieving repository 'testrepo' metadata ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------[\]
Download (curl) error for 'https://server.domain.com/pub/bootstrap/repodata/repomd.xml':
Error code: Curl error 60
Error message: SSL certificate problem: unable to get local issuer certificate

Abort, retry, ignore? [a/r/i/...? shows all options] (a): i
Retrieving repository 'testrepo' metadata .............................................................................................................................................................................................................................[error]
Repository 'testboot' is invalid.
[testrepo|https://server.domain.com/pub/bootstrap/] Valid metadata not found at specified URL
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'testboot' because of the above error.
Could not refresh the repositories because of errors.


Curl working properly:

servername:~ # curl https://server.domain.com/pub/bootstrap/repodata/repomd.xml

<!DOCTYPE HTML>
<html lang="en-US">
  <head>
    <!-- enclosing head tags in layout_c.jsp -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>

<snip>
  </footer>
  </body>
</html>
servername:~ # curl -I https://server.domain.com/pub/bootstrap/repodata/repomd.xml
HTTP/1.1 404 404
Date: Fri, 29 Sep 2023 18:01:05 GMT
Server: Apache
X-Frame-Options: SAMEORIGIN
Content-Type: text/html;charset=UTF-8
Set-Cookie: JSESSIONID=0F5714B2168EC13ACF1A5E95BBC8A208; Path=/; Secure; HttpOnly; HttpOnly;HttpOnly;Secure
Content-Security-Policy: default-src 'self' https: wss: ; script-src 'self' https: 'unsafe-inline' 'unsafe-eval'; img-src 'self' https: data: ;style-src 'self' https: 'unsafe-inline'
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Permitted-Cross-Domain-Policies: master-only


Using zypper ref with strace shows zypper is not able to find SSL certificates:

strace zypper ref
<snip>
stat("/etc/ssl/certs/6030d8da.0", 0x7ffc117a2860) = -1 ENOENT (No such file or directory)
stat("/etc/ssl/certs/6030d8da.0", 0x7ffc117a2860) = -1 ENOENT (No such file or directory)
stat("/etc/ssl/certs/e841d8e4.0", 0x7ffc117a2870) = -1 ENOENT (No such file or directory)


These files do not exist:

ls -la /etc/ssl/certs/6030d8da.0
ls: cannot access '/etc/ssl/certs/6030d8da.0': No such file or directory

Resolution

Install:

ca-certificates-1_201403302107-15.6.2 or newer

and

p11-kit-tools-0.23.2-8.10.1 or newer

Cause

This is due to outdated ca-certificates and p11-kit-tools packages.

These packages are dependent on each other being up-to-date.

The updates to these packages are needed to create the correct hash symlink for SSL certs.

Additional Information

These two changelog entries reflect the needed updates:
rpm -q --changelog p11-kit-tools-0.23.2-8.10.1.x86_64|head -n4
* Tue Aug 02 2022 lnussel@suse.de
- Conflict with ca-certificates < 1_201403302107-15.6.2 to make sure
  update-ca-certifictes calls trust export with --format=pem-directory-hash
  (bsc#1201985)

rpm -q ca-certificates --changelog |head -n3
* Wed Mar 09 2022 lnussel@suse.de
- Require p11-kit-tools > 0.23.1 as older versions don't support
  pem-directory-hash (bsc#1196443, boo#1196812) 

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:000021221
  • Creation Date: 05-Oct-2023
  • Modified Date:05-Oct-2023
    • SUSE Linux Enterprise Server
    • SUSE Manager

< Back to Support Search

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

SUSE Support Forums

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

Join Our Community

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.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

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

Go to Customer Center