openssl을 설치해보자 . 1. openssl.org/source에 들어가 다운받은 버전에 오른쪽마우스 - 링크주소 복사 2. wget으로 다운로드 wget 없다면 yum install wget (레드핫) apt-get install wget (우분투) 3.tar xvfz로 압축풀기 tart xvfz openssl1-1.1d.tar.gz 4. 디렉터리 이동 cd openssl1-1.1d 5. 명령어 실행 ./config shared 6.make make가 안 된다면 gcc,make 설치 확인 apt-get install gcc make yum install gcc make 7. make install 8. 접속 openssl OpenSSL is a library that provides SSL and TLS cryptographic protocols. It is used by a large number of applications for security-related purposes. penSSL is also used for encrypting and decrypting data. OpenSSL works well with most popular web servers including Apache, NGINX, etc. and supports popular encryption algorithms such as MD5, SHA-2, etc. By default, it is already installed in most Linux systems. But if that isn’t the case in your system, or if you want to upgrade your built-in OpenSSL, this article provides guidance for installing OpenSSL from source on your Ubuntu system. Update all packagesBefore installing any new package or software application, it is suggested that you refresh your system cache. To do this, run the below-mentioned command to update the apt packages list on Ubuntu.
On Fedora/CentOS/RHEL, you would have to run :
Install build dependenciesBefore compiling OpenSSL library from source, we must install the Install the Ubuntu repository and software compilation dependencies using the apt command below.
This command installs three essential packages that are needed to
compile Debian packages – Install the required development tools and packages libraries using the yum command on CentOS/Fedora/RHEL.
After the installation is complete, go to the next step. Grab OpenSSL source codeNext, we’ll need to download OpenSSL from the source. This will ensure that we always have the latest version running on our machine. To do so, type the following command.
Notice : The URL in the command above is for demonstrative purpose only. It is recommended that you visit official OpenSSL release page to find the latest version of OpenSSL, which includes all the security patch and bug fixes. Now that we have downloaded the source code
and installed all the necessary dependencies, we can begin to build OpenSSL from source. Run the following commands to extract the
We are now going to install OpenSSL which we downloaded using the command below:
In the command above, The command may take a while to complete the build process. Once it’s done, OpenSSL is installed in the Next, we will configure the shared libraries for OpenSSL so that they load at runtime. The newly installed OpenSSL binary will load library files from the Go to the
The
Now save and exit the editor and run the following command to reload the dynamic link with full debug output.
And you will see that the OpenSSL libraries on the Configure updated OpenSSLNext, we have to configure system environment so that it recognizes the
newly installed OpenSSL located at But first, we need to backup the binary files.
Next we need to edit /etc/environment file to include
Put
Next, reload the OpenSSL environment and check the PATH to see if the modification takes effect or not using the commands below:
You can verify our OpenSSL installation by checking its version using the command below
We hope that the information above helped you successfully install OpenSSL on your Ubuntu system. We’ve also covered other software installation for Linux, such as How to install CMake, Airflow, Cura and ADB/fastboot on CentOS, in case you’re interested. If you have any suggestion, please feel free to leave a comment below. Click to rate this post! You have already voted for this article |