Ao usar este site, você concorda com o política de Privacidade.
Aceitar
Entrar em TIEntrar em TIEntrar em TI
  • LAR
  • PROFISSIONAL DE TI
  • TECNOLOGIA
  • Microsoft
    • Azul
    • Configmgr/sccm
    • PMD
    • Orquestrador
    • Hiper-V
    • Microsoft Edge Insider
    • Msi
    • Escritório 365
    • Insider Office
    • Power bi
    • Skype
    • Servidor SQL
    • Equipes
  • WINDOWS
    • Centro de Administração do Windows
    • Cliente Windows
    • Servidor Windows
  • Lista de coleta de consultas SCCM
Leitura: How To Install OpenSSL 3 on AlmaLinux 9
Redimensionador de fontesAh
Entrar em TIEntrar em TI
Redimensionador de fontesAh
  • LAR
  • PROFISSIONAL DE TI
  • TECNOLOGIA
  • Microsoft
  • WINDOWS
  • Lista de coleta de consultas SCCM
Procurar
  • LAR
  • PROFISSIONAL DE TI
  • TECNOLOGIA
  • Microsoft
    • Azul
    • Configmgr/sccm
    • PMD
    • Orquestrador
    • Hiper-V
    • Microsoft Edge Insider
    • Msi
    • Escritório 365
    • Insider Office
    • Power bi
    • Skype
    • Servidor SQL
    • Equipes
  • WINDOWS
    • Centro de Administração do Windows
    • Cliente Windows
    • Servidor Windows
  • Lista de coleta de consultas SCCM
Linux

How To Install OpenSSL 3 on AlmaLinux 9

Publicado: Fevereiro 4, 2024
3 Leitura mínima
COMPARTILHAR

How To Install OpenSSL 3 on AlmaLinux 9.

This guide provides comprehensive instructions on installing OpenSSL 3 on AlmaLinux 9. The latest stable version of the 3.0 series, OpenSSL 3.0.8, will be installed. This guide will be updated as newer versions are released.

Prerequisites

  • A dedicated server running AlmaLinux 9
  • Root user access or a regular user with sudo privileges

Etapa 1: Update the Server

Maintaining an up-to-date server is crucial for security reasons. Use the following command to update the server:

dnf update -y

Etapa 2: Install Development Tools

Development tools and a few dependencies are required for installing OpenSSL. Execute the following command to install them:

dnf group install 'Development Tools'

Etapa 3: Install Dependencies

Install the necessary dependencies using the following command:

dnf install perl-core zlib-devel -y

Etapa 4: Download and Extract Source File

Download the latest stable version from the 3.0 series, which is also the Long Term Support (LTS) versão, supported until September 7, 2026. Use the following command to download the source file:

wget https://www.openssl.org/source/openssl-3.0.8.tar.gz

Extract the tar file using the following command:

tar xzvf openssl-3.0.8.tar.gz

Etapa 5: Configure and Build

Navigate to the extracted directory and configure, build, test, and install OpenSSL in the default location /usr/local/ssl:

cd openssl-3.0.8
./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib

Etapa 6: Configure Shared Libraries

After successfully installing OpenSSL, configure its shared libraries. Perform the following steps:

  1. Navigate to the /etc/ld.so.conf.d directory:
cd /etc/ld.so.conf.d/
  1. Create a configuration file:
vi openssl-3.0.8.conf
  1. Add the following path to the configuration file:
/usr/local/ssl/lib64
  1. Salve e saia do arquivo.
  2. Reload the dynamic link:
ldconfig -v

Etapa 7: Configure OpenSSL Binary

Replace the default openssl file with the binary of the newly installed OpenSSL version:

  1. Back up the existing openssl file:
mv /bin/openssl /bin/openssl.backup
  1. Create a new environment file for OpenSSL:
vi /etc/profile.d/openssl.sh
  1. Add the following lines to the file:
OPENSSL_PATH="/usr/local/ssl/bin"
export OPENSSL_PATH
PATH=$PATH:$OPENSSL_PATH
export PATH
  1. Salve e saia do arquivo.
  2. Make the newly created file executable:
chmod +x /etc/profile.d/openssl.sh
  1. Reload the new OpenSSL environment file and check the default PATH:
source /etc/profile.d/openssl.sh
echo $PATH

Etapa 8: Verify Installation

Verify that OpenSSL is installed and working correctly:

  1. Check the location of the openssl executable:
which openssl
  1. Print the OpenSSL version:
openssl version -a

The output should be similar to the following:

OpenSSL 3.0.8 7 Feb 2023 (Library: OpenSSL 3.0.8 7 Feb 2023)
built on: Sat Mar  4 18:28:32 2023 UTC
platform: linux-x86_64
options:  bn(64,64)
compiler: gcc -fPIC -pthread -m64 -Wa,--noexecstack -Wall -O3 -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_BUILDING_OPENSSL -DZLIB -DNDEBUG
OPENSSLDIR: "/usr/local/ssl"
ENGINESDIR: "/usr/local/ssl/lib64/engines-3"
MODULESDIR:
MARCADO:AlmaruxdnfLinuxopensslSSL
Artigo Anterior Lista de coleta de consultas do Configuration Manager System Center Configuration Manager Technical Preview Update 1611
Próximo artigo Instale o WordPress com o nginx no Almalinux 9
Deixe um comentário Deixe um comentário

Deixe uma resposta Cancelar resposta

Seu endereço de e-mail não será publicado. Os campos obrigatórios estão marcados *

Este site usa Akismet para reduzir spam. Saiba como os dados dos seus comentários são processados.

Tradução

English中文(简体)DanskNederlandsFrançaisDeutschItaliano한국어PolskiPortuguêsRomânăEspañolУкраїнська
por Transposh - translation plugin for wordpress

Postagens populares

Requisitos do sistema para Windows Server 2016
Servidor Windows
Lista de coleta de consultas do Configuration Manager
Lista de coleta de consultas do Configuration Manager
Configmgr
Navegação estruturada/gerenciada habilitada em páginas modernas em sites de equipe clássicos
Tecnologia
SCCM Falha ao obter locais de DP como a versão esperada do MP
Configmgr

Postagens recentes

Instalando e configurando Fail2ban para proteção SSH no Ubuntu 24.04
Linux
Habilitando e configurando FirewallD no AlmaLinux
Linux
Criação de usuário e configuração de chave SSH no AlmaLinux
Linux
Como redefinir a senha no AlmaLinux
Linux

© 2023 Entrar em TI

Vá para a versão móvel
Bem vindo de volta!

Faça login na sua conta

Nome de usuário ou endereço de e-mail
Senha

Perdeu sua senha?