generated from cjlapao/go-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
certificate.go
24 lines (21 loc) · 1.22 KB
/
certificate.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package entities
type RootCertificate struct {
Name string `json:"name" yaml:"name"`
Config *CertificateConfig `json:"config" yaml:"config"`
PemCertificate string `json:"PemCertificate" yaml:"PemCertificate"`
PemPrivateKey string `json:"PemPrivateKey" yaml:"PemPrivateKey"`
IntermediateCertificates []*IntermediateCertificate `json:"intermediateCertificates" yaml:"intermediateCertificates"`
}
type IntermediateCertificate struct {
Name string `json:"name" yaml:"name"`
Config *CertificateConfig `json:"config" yaml:"config"`
PemCertificate string `json:"PemCertificate" yaml:"PemCertificate"`
PemPrivateKey string `json:"PemPrivateKey" yaml:"PemPrivateKey"`
Certificates []*Certificate `json:"certificates" yaml:"certificates"`
}
type Certificate struct {
Name string `json:"name" yaml:"name"`
Config *CertificateConfig `json:"config" yaml:"config"`
PemCertificate string `json:"PemCertificate" yaml:"PemCertificate"`
PemPrivateKey string `json:"PemPrivateKey" yaml:"PemPrivateKey"`
}