Skip to content

Instantly share code, notes, and snippets.

View Snehal1112's full-sized avatar
🏆
Focusing

snehal dangroshiya Snehal1112

🏆
Focusing
View GitHub Profile
@Snehal1112
Snehal1112 / smallstep.md
Last active December 24, 2021 14:05
MTLS with smallstep

Install step and step-ca

wget https://dl.step.sm/gh-release/cli/docs-ca-install/v0.17.5/step-cli_0.17.5_amd64.deb
sudo dpkg -i step-cli_0.17.5_amd64.deb

wget https://dl.step.sm/gh-release/certificates/docs-ca-install/v0.17.4/step-ca_0.17.4_amd64.deb
sudo dpkg -i step-ca_0.17.4_amd64.deb

Set Hostname

Keybase proof

I hereby claim:

  • I am snehal1112 on github.
  • I am sdangroshiya (https://keybase.io/sdangroshiya) on keybase.
  • I have a public key ASA56bwQpUUb-y7fL8s-s_JuWk-H8F_hRV6fldALAKE6bQo

To claim this, I am signing this object:

@Snehal1112
Snehal1112 / cert.sh
Last active December 22, 2020 18:10
Generate self signed certificates
#!/bin/sh
Setup(){
echo "***********************"
echo "* Install step cli *"
echo "***********************"
apt update -y && apt install -f wget
cd /data/
wget https://github.com/smallstep/cli/releases/download/v0.15.2/step-cli_0.15.2_amd64.deb
dpkg -i step-cli_*_amd64.deb
@Snehal1112
Snehal1112 / generate and configure ssl certificate
Last active November 21, 2020 07:33
create ssl certificate
sudo apt update && apt upgread
sudo apt install apache2
wget https://github.com/smallstep/cli/releases/download/v0.15.2/step-cli_0.15.2_amd64.deb
dpkg -i step-cli_*_amd64.deb
mkdir -p /srv/tls && cd /srv/tls
step certificate create root-ca root-ca.crt root-ca.key --profile root-ca
step certificate install root-ca.crt