forked from TrueCloudLab/certificates
Add default templates for intermediate a root certificates.
This commit is contained in:
parent
0847af16cb
commit
534a6b6c4c
1 changed files with 19 additions and 0 deletions
|
@ -37,3 +37,22 @@ const DefaultLeafTemplate = `{
|
|||
"keyUsage": ["keyEncipherment", "digitalSignature"],
|
||||
"extKeyUsage": ["serverAuth", "clientAuth"]
|
||||
}`
|
||||
|
||||
const DefaultIntermediateTemplate = `{
|
||||
"subject": {{ toJson .Subject }},
|
||||
"keyUsage": ["certSign", "crlSign"],
|
||||
"basicConstraints": {
|
||||
"isCA": true,
|
||||
"maxPathLen": 0
|
||||
}
|
||||
}`
|
||||
|
||||
const DefaultRootTemplate = `{
|
||||
"subject": {{ toJson .Subject }},
|
||||
"issuer": {{ toJson .Subject }},
|
||||
"keyUsage": ["certSign", "crlSign"],
|
||||
"basicConstraints": {
|
||||
"isCA": true,
|
||||
"maxPathLen": 1
|
||||
}
|
||||
}`
|
||||
|
|
Loading…
Reference in a new issue