En utilisant ce site, vous acceptez le politique de confidentialité.
Accepter
EntérinEntérinEntérin
  • MAISON
  • INFORMATIQUE PRO
  • TECHNOLOGIE
  • Microsoft
    • Azuré
    • Configmgr / sccm
    • DPM
    • Orchestrateur
    • Hyper-v
    • Microsoft Edge Insider
    • MSI
    • Bureau 365
    • Bureau Insider
    • Power Bi
    • Skype
    • Serveur SQL
    • Équipes
  • FENÊTRES
    • Centre d'administration Windows
    • Client Windows
    • Serveur Windows
  • Liste de collecte de requêtes SCCM
En lisant: How To Install OpenSSL 3 on AlmaLinux 9
Redimensionneur de policeAA
EntérinEntérin
Redimensionneur de policeAA
  • MAISON
  • INFORMATIQUE PRO
  • TECHNOLOGIE
  • Microsoft
  • FENÊTRES
  • Liste de collecte de requêtes SCCM
Recherche
  • MAISON
  • INFORMATIQUE PRO
  • TECHNOLOGIE
  • Microsoft
    • Azuré
    • Configmgr / sccm
    • DPM
    • Orchestrateur
    • Hyper-v
    • Microsoft Edge Insider
    • MSI
    • Bureau 365
    • Bureau Insider
    • Power Bi
    • Skype
    • Serveur SQL
    • Équipes
  • FENÊTRES
    • Centre d'administration Windows
    • Client Windows
    • Serveur Windows
  • Liste de collecte de requêtes SCCM
Linux

How To Install OpenSSL 3 on AlmaLinux 9

Publié: Février 4, 2024
3 Lecture minimale
PARTAGER

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

Étape 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

Étape 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'

Étape 3: Install Dependencies

Install the necessary dependencies using the following command:

dnf install perl-core zlib-devel -y

Étape 4: Download and Extract Source File

Download the latest stable version from the 3.0 series, which is also the Long Term Support (LTS) version, 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

Étape 5: Configure and Build

Navigate to the extracted directory and configure, construire, 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

Étape 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. Enregistrez et quittez le fichier.
  2. Reload the dynamic link:
ldconfig -v

Étape 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. Enregistrez et quittez le fichier.
  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

Étape 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:
ÉTIQUETÉ:AlmaruxdnfLinuxopensslSSL
Article précédent Liste de collecte de requêtes Configuration Manager System Center Configuration Manager Technical Preview Update 1611
Article suivant Installez WordPress avec Nginx sur AlmaLinux 9
Laisser un commentaire Laisser un commentaire

Laisser une réponse Annuler la réponse

Votre adresse email ne sera pas publiée. Les champs obligatoires sont marqués *

Ce site utilise Akismet pour réduire le spam. Découvrez comment les données de vos commentaires sont traitées.

Traduction

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

Articles populaires

Configuration système requise pour Windows Server 2016
Serveur Windows
Liste de collecte de requêtes Configuration Manager
Liste de collecte de requêtes Configuration Manager
Configmgr
Navigation structurée/gérée activée sur les pages modernes dans les sites d'équipe classiques
Technologie
SCCM n'a pas réussi à obtenir les emplacements DP comme version attendue de MP
Configmgr

Messages récents

Installation et configuration de Fail2ban pour la protection SSH sur Ubuntu 24.04
Linux
Activation et configuration de FirewallD sur AlmaLinux
Linux
Création d'utilisateur et configuration de la clé SSH dans AlmaLinux
Linux
Comment réinitialiser le mot de passe sur AlmaLinux
Linux

© 2023 Entérin

Aller à la version mobile
Content de te revoir!

Connectez-vous à votre compte

Nom d'utilisateur ou adresse e-mail
Mot de passe

Vous avez perdu votre mot de passe?