#!/bin/bash

mkdir -p /root/ssl
FQDN=$(hostname -f)
openssl req -newkey rsa:2048 -nodes -keyout poconsole.key -x509 -days 365 -out poconsole.crt -subj "/C=US/ST=Texas/L=Dallas/O=Henry Pump/CN=$FQDN"
mv poconsole.key /root/ssl/
mv poconsole.crt /root/ssl/
