Skip to content

Instantly share code, notes, and snippets.

Amol Kahat amolkahat

View GitHub Profile
@amolkahat
amolkahat / satellite_cert_generator.sh
Last active Sep 3, 2018 — forked from ntkathole/satellite_cert_generator.sh
Script to generate certificates for satellite server
View satellite_cert_generator.sh
country=IN
state=Maharashtra
locality=Pune
organization=redhat
organizationalunit=QE
commonname=$(hostname)
openssl genrsa -out rootCA.key 2048
openssl req -x509 -new -nodes -key rootCA.key -sha256 -days 1024 -out rootCA.pem -subj "/CN=CA Cert/O=$organization/OU=$organizationalunit"
openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr -subj "/C=$country/ST=$state/L=$locality/O=$organization/OU=$organizationalunit/CN=$commonname"
You can’t perform that action at this time.