Resolution: Absence of OpenSSL Library (libcrypto/libssl)

Introduction:

This tutorial addresses the problem of missing OpenSSL library files (`libssl` and `libcrypto`). We will guide you through the process of checking for the availability of these libraries, restoring them if necessary without resorting to symlinks. If backup files are not present, we'll demonstrate how to download them from a provided URL, upload them via FTP/SFTP, and create backups to ensure against future issues.

Step 1: Removing Existing Symlinks (if present)

Before restoring the library files, ensure that any existing symlinks are removed. Execute the following commands:

For RHEL:

unlink /usr/lib64/libssl.so.10
unlink /usr/lib64/libcrypto.so.10

For Ubuntu/Debian:

unlink /lib/x86_64-linux-gnu/libssl.so.10
unlink /lib/x86_64-linux-gnu/libcrypto.so.10

Step 2: Checking Library Files

To verify if the necessary library files exist, use the `ls` command. Run the following commands:

For RHEL:

ls -l /usr/lib64/libssl*
ls -l /usr/lib64/libcrypto*

For Ubuntu/Debian:

ls -l /lib/x86_64-linux-gnu/libssl*
ls -l /lib/x86_64-linux-gnu/libcrypto*

This will provide information about the files related to `libssl` and `libcrypto`.

Step 3: Copying from Backup (if applicable)

If the original files are missing but backup files exist, you may proceed by copying them. However, it is crucial to check the hash before copying:

[root@freedom ~]# sha256sum /usr/lib64/libssl.so.10.bak
e9dd7f6d64538c86acc6613668955d39cbc9112274b316f8c40569b0db07da52 /usr/lib64/libssl.so.10.bak
[root@freedom ~]# sha256sum /usr/lib64/libcrypto.so.10.bak
ddbcb6f715b19ff72b52408907094cd77454202969bbb1d82a3ddba2133fdabf /usr/lib64/libcrypto.so.10.bak

If the hashes match, proceed with the copying process. If the original file exists but the backup does not, make a backup of the original file.

Step 4: Downloading the Files

[Click here to download the libssl and libcrypto.]

Step 5: Uploading the Files

To upload the downloaded files to your server, use FTP or SFTP. Consider using tools like `scp` or an FTP client for this task.

Step 6: Creating Backup Files

Once the files are uploaded, create backups on your server. Execute the following commands:

For RHEL:

cp /usr/lib64/libssl.so.10 /usr/lib64/libssl.so.10.bak
cp /usr/lib64/libssl.so.10 /usr/lib64/libcrypto.so.10.bak

For Ubuntu/Debian:

cp /lib/x86_64-linux-gnu/libssl.so.10 /lib/x86_64-linux-gnu/libssl.so.10.bak
cp /lib/x86_64-linux-gnu/libcrypto.so.10 /lib/x86_64-linux-gnu/libcrypto.so.10.bak

Step 7: Final Verification

To ensure that the library files have been properly restored, re-run the commands to check the files as mentioned in Step 2.

Conclusion:

By following these steps, you can resolve issues related to missing OpenSSL library files without creating symlinks. If backup files are not available, you can download them from a provided URL and upload them to your server for restoration. Always create backups to prevent future issues with your libraries.

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How to restrict direct root access in Linux

We can do it just in two steps. Step One: At first we will create new root user as follows (for...

How to extract .tar.gz files in Linux/UNIX OS

A tarball is a group of files that are bundled together using the tar command. Use the...

How to add welcome message when SSH start?

You need to change the contents of /etc/motd. Unfortunately, by default, /etc/motd is a link to...

How to change root password when SSH logged in

Run the following command: passwd Now type your new passwordOnce done, retype new passwordDone!...

How to install Pinguzo on any Linux/UNIX OS

Login to Pinguzo panel using Softaculous account or create an account of Pinguzo To add new...