Uninstalling the Key Manager Server
-
Remove the Key Manager Server package using the following command (on each Key Manager front end and Key Manager back end):
# yum erase sshmgrThe above command removes the sshmgr binaries. The configuration file backup
/opt/sshmgr/app/settings.py.rpmsaveis left on the machine. The configuration file backup contains encryption keys and can be used to upgrade to a newer version of the system, or to restore a previous installation.This action is sufficient for the purposes of disabling the Key Manager Server. However, if you want to completely remove all the files related to the Key Manager Server installation, such as when restoring Key Manager to an earlier version, also perform the procedures in the following steps.
-
Remove the sshmgr directory to remove all Key Manager backup files:
# rm -rf /opt/sshmgr/ -
The user
sshmgrhas been removed successfully if the previous command does not return any entries. -
On Key Manager front ends only, remove the Nginx configuration files:
# rm /etc/nginx/sites-enabled/sshmgr -
Remove all the Key Manager support packages. To remove a support package, you must determine what support packages have been installed, and what their package names are.
-
The installed support packages depend on the characteristics of your Key Manager deployment. The following list describes the rpm packages that have been installed from the Key Manager installation package onto all the Key Manager Servers:
-
All rpm files under
support/sshmgrhave been installed. -
If you are using an Oracle database, all rpm files under
support/oraclehave been installed.
-
-
You can query the support-package files (provided in the Key Manager installation package) to determine the names of the installed packages:
# rpm -qp support-rpm-file.rpmFor example, running the command on a support rpm:
# cd installation-package-path/support/sshmgr/# rpm -qp ordereddict-1.1-163.el6.noarch.rpmordereddict-1.1-163.el6.noarchYou can use the returned package name to remove the support package:
# yum erase ordereddict-1.1-163.el6.noarchcautionBe careful when removing support packages if you have other applications than Key Manager running on the machine. Other applications may depend on some of the Key Manager support packages to function (such as Django and Nginx). We recommend that you review any reported package dependencies before confirming package-removal actions.
-