ryran / xsos

sosreport examiner - instantly summarize system info from a sosreport or a running system
337 stars 122 forks source link

Peer certificate cannot be authenticated with given CA certificates #277

Open AlexonOliveiraRH opened 1 year ago

AlexonOliveiraRH commented 1 year ago

While trying to update my RHEL 8 today, I got the following error message:

$ sudo dnf update -y
Updating Subscription Management repositories.
Extra Packages for Enterprise Linux 8 - x86_64                                                                       3.7 kB/s | 2.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64                                                               3.6 kB/s | 2.3 kB     00:00    
RHEL 8 CSB                                                                                                           2.4 kB/s | 1.5 kB     00:00    
Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs)                                                             7.1 kB/s | 4.5 kB     00:00    
rsaw aroha rpms for Fedora/RHEL6+                                                                                    0.0  B/s |   0  B     00:02    
Errors during downloading metadata for repository 'rsawaroha':
  - Curl error (60): Peer certificate cannot be authenticated with given CA certificates for https://people.redhat.com/rsawhill/rpms/repodata/repomd.xml [SSL certificate problem: unable to get local issuer certificate]
Error: Failed to download metadata for repo 'rsawaroha': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

Then I uninstalled the rsawaroha-release-1-1.noarch package:

$ sudo rm $(which xsos) $(which rsar) /etc/bash_completion.d/{xsos,rsar}-bash-completion.bash

$ sudo dnf remove rsawaroha-release-1-1.noarch
Updating Subscription Management repositories.
Dependencies resolved.
=====================================================================================================================================================
 Package                                   Architecture                   Version                        Repository                             Size
=====================================================================================================================================================
Removing:
 rsawaroha-release                         noarch                         1-1                            @@commandline                          27 k

Transaction Summary
=====================================================================================================================================================
Remove  1 Package

Freed space: 27 k
Is this ok [y/N]: y
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                             1/1 
  Erasing          : rsawaroha-release-1-1.noarch                                                                                                1/1 
  Verifying        : rsawaroha-release-1-1.noarch                                                                                                1/1 
Installed products updated.

Removed:
  rsawaroha-release-1-1.noarch

And finally tried to install it again with no success (same error related to certificates):

$ sudo dnf install http://people.redhat.com/rsawhill/rpms/latest-rsawaroha-release.rpm -y
Updating Subscription Management repositories.
Extra Packages for Enterprise Linux 8 - x86_64                                                                       3.7 kB/s | 2.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64                                                               3.6 kB/s | 2.3 kB     00:00    
RHEL 8 CSB                                                                                                           2.5 kB/s | 1.5 kB     00:00    
Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs)                                                             7.1 kB/s | 4.5 kB     00:00    
[MIRROR] latest-rsawaroha-release.rpm: Curl error (60): Peer certificate cannot be authenticated with given CA certificates for https://people.redhat.com/rsawhill/rpms/latest-rsawaroha-release.rpm [SSL certificate problem: unable to get local issuer certificate]
[MIRROR] latest-rsawaroha-release.rpm: Curl error (60): Peer certificate cannot be authenticated with given CA certificates for https://people.redhat.com/rsawhill/rpms/latest-rsawaroha-release.rpm [SSL certificate problem: unable to get local issuer certificate]
[MIRROR] latest-rsawaroha-release.rpm: Curl error (60): Peer certificate cannot be authenticated with given CA certificates for https://people.redhat.com/rsawhill/rpms/latest-rsawaroha-release.rpm [SSL certificate problem: unable to get local issuer certificate]
[MIRROR] latest-rsawaroha-release.rpm: Curl error (60): Peer certificate cannot be authenticated with given CA certificates for https://people.redhat.com/rsawhill/rpms/latest-rsawaroha-release.rpm [SSL certificate problem: unable to get local issuer certificate]
[FAILED] latest-rsawaroha-release.rpm: Curl error (60): Peer certificate cannot be authenticated with given CA certificates for https://people.redhat.com/rsawhill/rpms/latest-rsawaroha-release.rpm [SSL certificate problem: unable to get local issuer certificate]
Curl error (60): Peer certificate cannot be authenticated with given CA certificates for https://people.redhat.com/rsawhill/rpms/latest-rsawaroha-release.rpm [SSL certificate problem: unable to get local issuer certificate]