How do I give trust to a self-signed certificate for Zypper?

7,000

if above OpenSuSE 13 you could copy your root CA into /etc/pki/trust/anchors/ and then run the

  update-ca-certificates 

command to import it.

Share:
7,000
TravisThomas
Author by

TravisThomas

Updated on September 18, 2022

Comments

  • TravisThomas
    TravisThomas over 1 year

    We're trying to set up a repository for SuSE Linux-based devices. We are authenticating the repository with a CA that contains, at its root, a self-signed certificate. When trying to retrieve updates from the repository, we get this message:

    Connecting to server|10.0.1.15|:443... connected.
    WARNING: cannot verify server's certificate, issued by `/CN=IntermediateCA_server_1/O=Company/OU=MACOSX OpenDirectory Intermediate CA/[email protected]':
    Self-signed certificate encountered.
    

    The update then fails due to lack of trust.

    Is there a way to install the self-signed certificate on the devices so that zypper finds it and knows to trust it?

  • Andrey Regentov
    Andrey Regentov about 7 years
    so sad when you don't have 'update-ca-certificates' package and cannot install it due to "cannot verify server's certificate"
  • xoryves
    xoryves about 6 years
    For SLE11 it's /etc/ssl/certs and c_rehash /etc/ssl/certs. Taken from: forums.suse.com/…