Documentation
¶
Index ¶
- func Check(e error)
- func ComputeMRN(cert *x509.Certificate) string
- func ExportCert(cert *x509.Certificate) string
- func HexEncode(b []byte) string
- type Core
- func (c *Core) Close() error
- func (c *Core) Delete(serial string) error
- func (c *Core) Generate(realm string) (*x509.Certificate, error)
- func (c *Core) List() error
- func (c *Core) Login(tokenUrl string, insecure bool, audience string, signer crypto.Signer, ...) (string, error)
- func (c *Core) LoginPKCS11(url string, insecure bool, audience string, serial string) (string, error)
- func (c *Core) LoginPKCS12(url string, insecure bool, audience string, p12 string, password string, ...) (string, error)
- func (c *Core) LoginX509(url string, insecure bool, audience string, key string, cert string, path bool) (string, error)
- func (c *Core) Show(serial string) error
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeMRN ¶
func ComputeMRN(cert *x509.Certificate) string
ComputeMRN computes MRN given certificate
func ExportCert ¶
func ExportCert(cert *x509.Certificate) string
ExportCert exports the certificate into a PEM string
Types ¶
type Core ¶
func (*Core) LoginPKCS11 ¶
func (*Core) LoginPKCS12 ¶
Click to show internal directories.
Click to hide internal directories.