cfssl
cfssl copied to clipboard
how to extend the term of CA validity?
I generated my self-signed CA by cfssl gencert -initca, but the default term of validity is 5 years. How can I modify it to 10 years ? I don’t want to recreate a new CA, because it has signed a lot of sub CAs.
Anyone can help me ? Thanks so much .
@Wang-Kai When generating certificate using e.g.
cfssl gencert -ca=ca.pem -ca-key=ca-key.pem -config=ca-conf.json -profile server ...
you can pass ca-conf.json with something like this
{
"signing": {
"default": {
"expiry": "87600h"
},
"profiles": {
"server": {
"expiry": "87600h",
"usages": [
"signing",
"key encipherment",
"server auth",
"client auth"
]
},
"client": {
"expiry": "87600h",
"usages": [
"signing",
"key encipherment",
"client auth"
]
},
"peer": {
"expiry": "87600h",
"usages": [
"signing",
"key encipherment",
"server auth",
"client auth"
]
}
}
}
}