OpenSSL is an open source SSL technology, because I need to use PHP-related features, need to get HTTPS files so I have to install this thing, below I have collated two kinds of OpenSSL installation configuration method.
Installation Environment:
Operating system: CENTOS7 quiet
OpenSSL version:openssl-1.0.2j.tar.gz
The current version of the latest SSL address is http://www.openssl.org/source/openssl-1.0.2j.tar.gz
1. Place the downloaded compressed package in the root directory,
2, under the folder decompression, command: Tar-xzf openssl-1.0.2j.tar.gz, get openssl-1.0.2j folder
3. Enter the extracted directory: CD openssl-1.0.2j
4, set the OpenSSL installation, (--prefix) parameters for the installation of the directory, that is, the installed files will appear in this directory:
Execute command:./config--prefix=/usr/local/openssl
5. Execute the order./config-t
6. Execute make to compile OpenSSL
Here if the following error occurs
MAKE[1]: Gcc:command not found angry
Surf the internet to find out I installed the CentOS7 in the GCC compiler
Ensure the system network unblocked, execute the command yum-y install GCC (note, must forget the smooth, otherwise not installed)
7. Installing Openssl:make Install
8. Execute the following command
?
12 |
[[email protected] /] # cd /usr/local [[email protected] local ] # ldd /usr/local/openssl/bin/openssl |
A message similar to the following will appear:
9. View the path
?
View version
?
Ways to uninstall old versions of OpenSSL
?
12 |
apt-get purge openssl rm -rf /etc/ssl #删除配置文件 |
The above is the whole content of this article, I hope that everyone's learning has helped, but also hope that we support the script home.
Articles you may be interested in:
- Linux under Nginx installation method (Pcre and OpenSSL)
- Detailed steps for installing OpenSSL, swoole, and other extensions under Linux
Original link: http://blog.csdn.net/ikownyou/article/details/53021686
Detailed description of installing the OpenSSL installation graphic method under Linux (CENTOS7)