certificates/x509util/templates.go

15 lines
292 B
Go
Raw Normal View History

2020-07-02 01:30:41 +00:00
package x509util
2020-07-08 01:56:05 +00:00
const (
UserKey = "User"
SubjectKey = "Subject"
SANsKey = "SANs"
)
2020-07-02 01:30:41 +00:00
const DefaultLeafTemplate = `{
"subject": {{ toJson .Subject }},
2020-07-08 01:56:05 +00:00
"sans": {{ toJson .SANs }},
2020-07-02 01:30:41 +00:00
"keyUsage": ["keyEncipherment", "digitalSignature"],
"extKeyUsage": ["serverAuth", "clientAuth"]
}`