Documentation ¶
Index ¶
- Constants
- func AppendEndpoint(endpoint *rule.Endpoint, cert *x509.Certificate)
- func DecodeCert(cert string) *x509.Certificate
- func DecodePrivateKey(cert string) *ecdsa.PrivateKey
- func EncodePrivateKey(caPrivKey *ecdsa.PrivateKey) string
- func EncodePublicKey(pub *ecdsa.PublicKey) (res string)
- func GenerateCSR() (string, *ecdsa.PrivateKey, error)
- func LoadCSR(csrString string) (*x509.CertificateRequest, error)
- func NewStorage(options *config.Options) *storageImpl
- func SignFromCSR(csr *x509.CertificateRequest, endpoint *rule.Endpoint, authorityCert *Cert, ...) (string, error)
- type Cert
- type Storage
Constants ¶
View Source
const (
UNITag int = 6
)
Variables ¶
This section is empty.
Functions ¶
func AppendEndpoint ¶
func AppendEndpoint(endpoint *rule.Endpoint, cert *x509.Certificate)
func DecodeCert ¶
func DecodeCert(cert string) *x509.Certificate
func DecodePrivateKey ¶
func DecodePrivateKey(cert string) *ecdsa.PrivateKey
func EncodePrivateKey ¶
func EncodePrivateKey(caPrivKey *ecdsa.PrivateKey) string
func EncodePublicKey ¶
func GenerateCSR ¶
func GenerateCSR() (string, *ecdsa.PrivateKey, error)
func NewStorage ¶
func SignFromCSR ¶
Types ¶
type Cert ¶
type Cert struct { Cert *x509.Certificate CertPem string PrivateKey *ecdsa.PrivateKey // contains filtered or unexported fields }
func GenerateAuthorityCert ¶
func SignServerCert ¶
func (*Cert) GetTlsCert ¶
func (c *Cert) GetTlsCert() *tls.Certificate
func (*Cert) NeedRefresh ¶
Click to show internal directories.
Click to hide internal directories.