Mir Sayeed Hassan – Oracle Blog

Oracle DBA – Tips & Techniques | Learn with real-time examples

  • Translate

  • It’s Me






  • My Certificates

  • Links

    My Acclaim Certification : Credly Profile
    My Oracle ACE Pro Profile

  • Achievements

    Awarded Top 100 Oracle Blogs from Worldwide - #RANK 39
  • VISITORS COUNT

  • Verified International Academic Qualification from World Education Service (WES)

    Verified International Academic Qualification from World Education Service (WES)

  • Jobs

ERROR: cannot find RHNS CA file: /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT

Posted by Mir Sayeed Hassan on February 20th, 2021

ERROR: cannot find RHNS CA file: /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT

The below error is occur in one of my server while install the rpm packages

Install the RPM Package for telnet

[root@testdb~]# yum install telnet*
Loaded plugins: fastestmirror, langpacks, ulninfo

ERROR: can not find RHNS CA file: /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT

Check the RHN Package install on server

[root@testdb~]# rpm -qa | grep rhn

rhnsd-5.0.13-10.0.1.el7.x86_64
rhn-setup-2.0.2-24.el7.x86_64
rhnlib-2.5.65-8.el7.noarch
rhn-client-tools-2.0.2-24.el7.x86_64
rhn-check-2.0.2-24.el7.x86_64
yum-rhn-plugin-2.0.1-10.0.1.el7.noarch

Check the dependencies of the above package

[root@testdb~]# rpm -e yum-rhn-plugin-2.0.1-10.0.1.el7.noarch
error: Failed dependencies:
yum-rhn-plugin is needed by (installed) yum-plugin-ulninfo-0.2-13.el7.noarch
yum-rhn-plugin >= 1.6.4-1 is needed by (installed) rhn-check-2.0.2-24.el7.x86_64
[root@oem13 ~]# rpm -e yum-plugin-ulninfo-0.2-13.el7.noarch
error: Failed dependencies:
yum-plugin-ulninfo is needed by (installed) yum-rhn-plugin-2.0.1-10.0.1.el7.noarch
[root@oem13 ~]# rpm -e rhn-check-2.0.2-24.el7.x86_64
error: Failed dependencies:
rhn-check >= 0.0.8 is needed by (installed) rhnsd-5.0.13-10.0.1.el7.x86_64

Locate to the RHN location & Update the below configuration file (up2date file)

[root@testdb~]# cd /etc/sysconfig/rhn

[root@oem13 ~]# vi up2date
## The below parameter is changed by Mir as per recommended by the Oracle Support.

sslCACert[comment]=The CA cert used to verify the ssl server
#sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
sslCACert=/usr/share/rhn/RHNS-CA-CERT

:wq
[root@testdb rhn]# yum repolist all

Loaded plugins: fastestmirror, langpacks, ulninfo
Loading mirror speeds from cached hostfile
repo id repo name status
base FP_OS2 disabled
update FP_Updates2 disabled

Enable the above config file

[root@testdb rhn]# yum-config-manager --enable FP_Updates2
[root@testdb rhn]# yum-config-manager --enable FP_OS2

Check the repository list for all

[root@testdb rhn]# yum repolist all
Loaded plugins: fastestmirror, langpacks, ulninfo
Loading mirror speeds from cached hostfile
repo id repo name status
base FP_OS2 enabled: 10,097
update FP_Updates2 enabled: 1,787
repolist: 11,884

Install the RPM Package for TELNET

[root@testdb rhn]# yum install telnet*
Loaded plugins: fastestmirror, langpacks, ulninfo
Loading mirror speeds from cached hostfile
Package 1:telnet-0.17-64.el7.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package telnet-server.x86_64 1:0.17-64.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================
Package Arch Version Repository Size
=============================================
Installing:
telnet-server x86_64 1:0.17-64.el7 base 41 k

Transaction Summary
=============================================
Install 1 Package

Total download size: 41 k
Installed size: 55 k
Is this ok [y/d/N]: y
Downloading packages:
telnet-server-0.17-64.el7.x86_64.rpm | 41 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Installing : 1:telnet-server-0.17-64.el7.x86_64 1/1
Verifying : 1:telnet-server-0.17-64.el7.x86_64 1/1

Installed:
telnet-server.x86_64 1:0.17-64.el7
Complete!

=====Hence tested & verified in our test env=====