Outils pour utilisateurs

Outils du site


linux:installation:openssl

Ceci est une ancienne révision du document !


agi openssl ssl-cert

Puis on suit ce tuto : https://www.digitalocean.com/community/tutorials/how-to-create-a-self-signed-ssl-certificate-for-apache-in-debian-9

Synthèses des commandes

Step 1 — Creating the SSL Certificate

We can create a self-signed key and certificate pair with OpenSSL in a single command :

sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout  /etc/ssl/private/apache-selfsigned.key -out /etc/ssl/certs/apache-selfsigned.crt

You will be asked a series of questions. Before we go over that, let’s take a look at what is happening in the command we are issuing:

  1. Output
  2. Country Name (2 letter code) [AU]:US
  3. State or Province Name (full name) [Some-State]:New York
  4. Locality Name (eg, city) []:New York City
  5. Organization Name (eg, company) [Internet Widgits Pty Ltd]:Bouncy Castles, Inc.
  6. Organizational Unit Name (eg, section) []:Ministry of Water Slides
  7. Common Name (e.g. server FQDN or YOUR name) []:server_IP_address
  8. Email Address []:admin@your_domain.com

Both of the files you created will be placed in the appropriate subdirectories under /etc/ssl.

Step 2 — Configuring Apache to Use SSL

We have created our key and certificate files under the /etc/ssl directory. Now we just need to modify our Apache configuration to take advantage of these.

We will make a few adjustments to our configuration :

linux/installation/openssl.1662216186.txt.gz · Dernière modification : 2022/09/03 14:43 de tutospisto