Generate Certificates using openssl One Liner

This is useful for scripting the generation of certificates for web servers.

openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 \
    -subj "/C=${}/ST=${node.ssl.state}/L=${}/O=${node.ssl.ou}/CN=${}" \
    -keyout /etc/ssl/private/node-selfsigned.key  -out /etc/ssl/certs/node-selfsigned.crt

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: