From 8c4d40288006998e2df27650b0804645a4bca36d Mon Sep 17 00:00:00 2001 From: John Steel Date: Sat, 26 Sep 2020 12:36:07 -0400 Subject: [PATCH] Rename README.md README.md wasn't actually a readme but an example for how to make a simple pki. --- containers/ssl/README.md | 4 ---- containers/ssl/create_ca_and_ee.sh | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 containers/ssl/README.md create mode 100644 containers/ssl/create_ca_and_ee.sh diff --git a/containers/ssl/README.md b/containers/ssl/README.md deleted file mode 100644 index 3fc75db..0000000 --- a/containers/ssl/README.md +++ /dev/null @@ -1,4 +0,0 @@ -openssl req -x509 -nodes -new -sha256 -days 1024 -newkey rsa:2048 -keyout RootCA.key -out RootCA.pem -subj "/C=US/CN=Root-CA" -openssl x509 -outform pem -in RootCA.pem -out RootCA.crt -openssl req -new -nodes -newkey rsa:2048 -keyout lesspass.key -out lesspass.csr -subj "/C=FR/ST=Gironde/L=Bordeaux/O=LessPass/CN=lesspass.local" -openssl x509 -req -sha256 -days 1024 -in lesspass.csr -CA RootCA.pem -CAkey RootCA.key -CAcreateserial -extfile domains.ext -out lesspass.crt \ No newline at end of file diff --git a/containers/ssl/create_ca_and_ee.sh b/containers/ssl/create_ca_and_ee.sh new file mode 100644 index 0000000..3fc75db --- /dev/null +++ b/containers/ssl/create_ca_and_ee.sh @@ -0,0 +1,4 @@ +openssl req -x509 -nodes -new -sha256 -days 1024 -newkey rsa:2048 -keyout RootCA.key -out RootCA.pem -subj "/C=US/CN=Root-CA" +openssl x509 -outform pem -in RootCA.pem -out RootCA.crt +openssl req -new -nodes -newkey rsa:2048 -keyout lesspass.key -out lesspass.csr -subj "/C=FR/ST=Gironde/L=Bordeaux/O=LessPass/CN=lesspass.local" +openssl x509 -req -sha256 -days 1024 -in lesspass.csr -CA RootCA.pem -CAkey RootCA.key -CAcreateserial -extfile domains.ext -out lesspass.crt \ No newline at end of file