Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install OpenSSL in Linux system

2025-03-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article shows you how to install OpenSSL in the Linux system, the content is concise and easy to understand, it will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.

Installation environment:

Operating system: CentOs7 quiet

OpenSSL Version:openssl-1.0.2j.tar.gz

The latest SSL address in the current version is http://www.openssl.org/source/openssl-1.0.2j.tar.gz.

1. Put the downloaded package in the root directory

2. Unzip it under the folder. Command: tar-xzf openssl-1.0.2j.tar.gz to get the openssl-1.0.2j folder.

3. Enter the decompressed directory: cd openssl-1.0.2j

4. Set the (--prefix) parameter for Openssl installation to the directory to be installed, that is, the files after installation will appear in this directory:

Execute the command:. / config-- prefix=/usr/local/openssl

5. Execute the command. / config-t

6. Execute make, compile Openssl

If the following error occurs here

Make [1]: gcc: Command not found angry

When I checked the Internet, I found that there was no GCC compiler in the CentOS7 I installed.

After ensuring that the system network is smooth, execute the command yum-y install gcc to install GCC (note, be sure to forget the smooth, otherwise the installation will not be possible)

7. Install Openssl:make install

8. Execute the following command

[root@localhost /] # cd / usr/local [root@localhost local] # ldd / usr/local/openssl/bin/openssl

A message similar to this appears:

9. View the path

...] # which openssl

View version

...] # openssl version

The method of uninstalling the old version of OpenSSL

Apt-get purge opensslrm-rf / etc/ssl # deleting the configuration file is how to install OpenSSL on a Linux system. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report