Skip to content

Instantly share code, notes, and snippets.

View eng1n88r's full-sized avatar
:octocat:
Code today, change tomorrow.

Viktar Hushchynski eng1n88r

:octocat:
Code today, change tomorrow.
View GitHub Profile
@zapstar
zapstar / openssl_2way_auth.sh
Last active March 28, 2025 11:49
Steps to create CA, server and client keys + certificates for SSL 2-way authentication
# Move to root directory...
cd /
mkdir keys
cd keys
# Generate a self signed certificate for the CA along with a key.
mkdir -p ca/private
chmod 700 ca/private
# NOTE: I'm using -nodes, this means that once anybody gets
# their hands on this particular key, they can become this CA.