Skip to content

Commit 1a90450

Browse files
committed
use a different csr for the tinkerbell ca
this allows us to clearly identify the ca and server certificates Signed-off-by: Rui Lopes <[email protected]>
1 parent bfc4349 commit 1a90450

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

deploy/compose/tls/ca-csr.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"CN": "Tinkerbell CA",
3+
"key": {
4+
"algo": "rsa",
5+
"size": 2048
6+
},
7+
"names": [
8+
{
9+
"L": "@FACILITY@"
10+
}
11+
]
12+
}

deploy/compose/tls/csr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"CN": "tinkerbell",
2+
"CN": "Tinkerbell",
33
"hosts": [
44
"tinkerbell.registry",
55
"tinkerbell.tinkerbell",

deploy/compose/tls/generate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ gen() {
2525
local ca_crt_destination="$1"
2626
local server_crt_destination="$2"
2727
local server_key_destination="$3"
28-
cfssl gencert -initca /code/tls/csr.json | cfssljson -bare ca -
28+
cfssl gencert -initca /code/tls/ca-csr.json | cfssljson -bare ca -
2929
cfssl gencert -config /code/tls/ca-config.json -ca ca.pem -ca-key ca-key.pem -profile server /code/tls/csr.json | cfssljson -bare server
3030
mv ca.pem "${ca_crt_destination}"
3131
mv server.pem "${server_crt_destination}"

0 commit comments

Comments
 (0)