Skip to content

Commit

Permalink
Added csr-creatio-only mode
Browse files Browse the repository at this point in the history
  • Loading branch information
roman committed Aug 13, 2023
1 parent c522cd0 commit 0d33263
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/csr-test/README.md
Original file line number Diff line number Diff line change
@@ -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/`.
1 change: 1 addition & 0 deletions examples/csr-test/certs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This is where the configurations and certificates are stored.
16 changes: 16 additions & 0 deletions examples/csr-test/hosts.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions examples/csr-test/run_test_yaml.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0d33263

Please sign in to comment.