Generating self-signed certificate files (Linux - Debian)

This article has not been completed yet. However, it may already contain helpful Information and therefore it has been published at this stage.

# Installing the tree app
sudo apt-get install tree
# Changing Directory
cd ..
# Listing root folder structure
tree -d -L 1
# Checking the Openssl Version
openssl version a
# Creating a cert - folder
mkdir certs
# Changing Directory
cd certs

# Generating the Cert
openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes \
  -keyout cert.key -out cert.crt -extensions san -config \
  <(echo "[req]"; 
    echo distinguished_name=req; 
    echo "[san]"; 
    echo subjectAltName=DNS:<domain>,IP:<IP>
    ) \
  -subj "/CN=<domain>"

# Looking for the new generated certs
ls
Linux see directory tree structure using tree command
Linux see directory tree structure - Explains how to use Linux tree command to list contents of directories in a tree-like format.
How to Limit Depth of ‘tree’ for Recursive File Listing
In this article, you will learn the tree command, which is used for recursive file listing, and how we can limit the depth of file structure to be displayed.
GitHub - jmarceli/traefik-self-signed-ssl-proxy: Add self-signed SSL for local development server
Add self-signed SSL for local development server. Contribute to jmarceli/traefik-self-signed-ssl-proxy development by creating an account on GitHub.