From 1c64bdaf08dc18402f45ee23ac6fc7abc9565caa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20F=20Bj=C3=B6rklund?= Date: Mon, 8 Oct 2018 22:19:39 +0200 Subject: [PATCH] cert-gen: minimum fields length are now enforced Set the example.com CA to the same as the timezone --- scripts/cert-gen | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cert-gen b/scripts/cert-gen index 881011b..de46dd1 100644 --- a/scripts/cert-gen +++ b/scripts/cert-gen @@ -33,7 +33,7 @@ echo $password > $passfile # Generate the CA openssl genrsa -aes256 -passout file:$passfile -out ca-key.pem 2048 -openssl req -new -x509 -passin file:$passfile -days 365 -key ca-key.pem -sha256 -out ca.pem -subj "/C=/ST=/L=/O=/OU=/CN=example.com" +openssl req -new -x509 -passin file:$passfile -days 365 -key ca-key.pem -sha256 -out ca.pem -subj "/C=US/ST=NY/L=New York/O=Example/OU=X/CN=example.com" # Generate Server Key and Sign it openssl genrsa -out server-key.pem 2048