From 0d33263d0ef29adcb72e1fc5c61eaa6fdddf2dc9 Mon Sep 17 00:00:00 2001 From: roman Date: Sun, 13 Aug 2023 14:12:18 +0200 Subject: [PATCH] Added csr-creatio-only mode --- examples/csr-test/README.md | 2 ++ examples/csr-test/certs/README.md | 1 + examples/csr-test/hosts.yml | 16 ++++++++++++++++ examples/csr-test/run_test_yaml.sh | 8 ++++++++ 4 files changed, 27 insertions(+) create mode 100644 examples/csr-test/README.md create mode 100644 examples/csr-test/certs/README.md create mode 100644 examples/csr-test/hosts.yml create mode 100755 examples/csr-test/run_test_yaml.sh diff --git a/examples/csr-test/README.md b/examples/csr-test/README.md new file mode 100644 index 0000000..19deabd --- /dev/null +++ b/examples/csr-test/README.md @@ -0,0 +1,2 @@ +This is a simple example creating a CSR as a demonstration. +Run with `./run_test_yaml.sh` for YAML input and take a look at the resulting output in `certs/`. diff --git a/examples/csr-test/certs/README.md b/examples/csr-test/certs/README.md new file mode 100644 index 0000000..c797c0e --- /dev/null +++ b/examples/csr-test/certs/README.md @@ -0,0 +1 @@ +This is where the configurations and certificates are stored. diff --git a/examples/csr-test/hosts.yml b/examples/csr-test/hosts.yml new file mode 100644 index 0000000..4c9f703 --- /dev/null +++ b/examples/csr-test/hosts.yml @@ -0,0 +1,16 @@ +global: + country: DE + org: My Org + locality: Berlin +certs: + - fileName: test + CN: me.at.home + CN_as_SAN: "false" + CA: "false" + SANs: + - name: me + - name: me.at + - ip: 10.0.0.1 + - CN: me.at.home + SANs: + - name: me.at diff --git a/examples/csr-test/run_test_yaml.sh b/examples/csr-test/run_test_yaml.sh new file mode 100755 index 0000000..1791ffb --- /dev/null +++ b/examples/csr-test/run_test_yaml.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +docker run --rm \ +-e PREPARE_CSR_ONLY=yes \ +-e PASSWD=changeIt -e DAYS=389 -e DAYS_CA=3650 \ +-v $(pwd)/hosts.yml:/opt/certs/hosts.txt \ +-v $(pwd)/certs:/opt/certs/current \ +schmitzi/openssl-alpine-j11:1.2.0