certificates/x509util/templates.go
2020-07-21 14:18:04 -07:00

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"]
}`