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 under Linux

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces "how to install OpenSSL under Linux". In daily operation, I believe many people have doubts about how to install OpenSSL under Linux. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to install OpenSSL under Linux". Next, please follow the editor to study!

Installation environment:

Operating system: centos7 quiet

Openssl version:openssl-1.0.2j.tar.gz

The latest ssl address in the current version is

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 # delete the configuration file at this point, the study on "how to install OpenSSL under Linux" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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

Development

Wechat

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

12
Report