Skip to content

Commit ce0305c

Browse files
authored
backdate generated ca and server certs (tinkerbell#130)
## Description Updates cfssl configs to backdate generated certificates ## Why is this needed In some cases, a machine being provisioned may not be in time sync with the provisioner. In these cases, linuxkit is unable to download the tink-worker image from the registry because the registry's certificate is in the future. (not yet valid) Setting a backdate of anything over 24hrs will account for differences in timezone between target machine and provisioner. Fixes: # ## How Has This Been Tested? These configuration were used to successfully provision multiple bare metal servers. ## How are existing users impacted? What migration steps/scripts do we need? This should not impact existing users or require mitigation steps. ## Checklist: I have: - [ ] updated the documentation and/or roadmap (if required) - [ ] added unit or e2e tests - [ ] provided instructions on how to upgrade
2 parents 45d749d + 70a4739 commit ce0305c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

deploy/compose/generate-tls-certs/ca-config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
},
66
"profiles": {
77
"server": {
8+
"backdate": "48h",
89
"expiry": "8760h",
910
"usages": [
1011
"signing",

deploy/compose/generate-tls-certs/ca-csr.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
22
"CN": "Tinkerbell CA",
3+
"ca": {
4+
"backdate": "48h",
5+
"expiry": "8760h"
6+
},
37
"key": {
48
"algo": "ecdsa",
59
"size": 256

0 commit comments

Comments
 (0)