OpenSSL - Certificates

June 23, 2020 17:46

Just store and execute the following…

echo "Step 1: Generate a Private Key"
openssl genrsa -des3 -out server.key

echo "Step 2: Generate a CSR (Certificate Signing Request)"
openssl req -new -key server.key -out server.csr

echo "Step 3: Remove Passphrase from Key"
cp server.key
openssl rsa -in -out server.key

echo "Step 4: Generating a Self-Signed Certificate"
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt

echo "Step 5: Installing the Private Key and Certificate (DO IT YOURSELF)"
rm server.csr