hvpn-node3/cmd/hvpn-node/init-certs.sh
HeshamTB da0b1c720e
feat: implement optional mTLS and helper scripts
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2024-03-18 23:02:22 +03:00

29 lines
509 B
Bash
Executable File

#!/usr/bin/env bash
openssl req \
-x509 \
-new \
-noenc \
-sha256 \
-newkey rsa:4096 \
-outform PEM \
-keyout client_cert.key \
-out client_cert.pem \
-days 3600 \
-new \
-subj "/C=US/ST=Ohio/L=Columbus/O=HVPN/OU=HVPN Client"
openssl req \
-x509 \
-new \
-noenc \
-sha256 \
-newkey rsa:4096 \
-outform PEM \
-keyout cert.key \
-out cert.pem \
-days 3600 \
-new \
-subj "/C=US/ST=Ohio/L=Columbus/O=HVPN/OU=HVPN Server"