forked from TrueCloudLab/certificates
14 lines
292 B
Go
14 lines
292 B
Go
package x509util
|
|
|
|
const (
|
|
UserKey = "User"
|
|
SubjectKey = "Subject"
|
|
SANsKey = "SANs"
|
|
)
|
|
|
|
const DefaultLeafTemplate = `{
|
|
"subject": {{ toJson .Subject }},
|
|
"sans": {{ toJson .SANs }},
|
|
"keyUsage": ["keyEncipherment", "digitalSignature"],
|
|
"extKeyUsage": ["serverAuth", "clientAuth"]
|
|
}`
|