Skip to content
This repository was archived by the owner on Aug 27, 2023. It is now read-only.

Commit 813fff3

Browse files
committed
Certificate chain generation
1 parent 083dbb4 commit 813fff3

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

certificates/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*
22
!.gitignore
3+
!generate_chain.sh

certificates/generate_chain.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
for host in `find . -mindepth 1 -maxdepth 1 -type d -printf '%f\n'`; do
4+
5+
cert="$host/${host}.crt"
6+
ca="$host/DigiCertCA.crt"
7+
8+
dest="$host/${host}_chain.pem"
9+
10+
cat $cert > $dest
11+
cat $ca >> $dest
12+
13+
echo $dest
14+
done

0 commit comments

Comments
 (0)