How to solve the issue of still showing the old version after installing OpenSSL?

If you have installed a new version of OpenSSL but it’s still showing the old version, it could be because there are multiple versions of OpenSSL in the system and the path to the old version is being prioritized in the system’s environment variables. You can try the following methods to resolve this issue:

  1. Check the installation path of OpenSSL: First confirm the path of the new version of OpenSSL that you have installed. You can run the following command in the terminal to view the installation path of OpenSSL:
  2. Where is the openssl located?
  3. If the displayed path is not the path of the newer version of OpenSSL that you installed, then you should check the system’s environment variables.
  4. Check the system’s environment variables: Run the following command in the terminal to view the system’s environment variables:
  5. Display the value of the PATH variable.
  6. Check if the output path includes the path of the old version of OpenSSL. If it does, you can try the following methods to prioritize the use of the new version of OpenSSL:
  7. Change the environment variable by editing your system environment variable file (such as ~/.bashrc, ~/.bash_profile, or /etc/profile), adding the path of the new version of OpenSSL to the beginning of the PATH variable. After saving the file, restart the terminal or execute the source command to make the changes take effect.
  8. To create a symbolic link: If you are unable to modify system environment variables, you can create a symbolic link that links the new version of OpenSSL to the path of the old version. For example, run the following command to create a link: ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl This will create a symbolic link named openssl, linking the new version of OpenSSL to the /usr/bin/openssl path.
  9. Reboot the system: Sometimes, after modifying environment variables, the system needs to be rebooted for the changes to take effect.

Once you have completed the above steps, you should be able to use the new version of OpenSSL. You can run the “openssl version” command again to confirm the installed version.

bannerAds