wstep

package
v0.0.0-...-13e4519 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2019 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PemTypeCertificate               = "CERTIFICATE"
	PemTypeKey                       = "RSA PRIVATE KEY"
	PemTypeCertificateSigningRequest = "CERTIFICATE REQUEST"
)

Variables

This section is empty.

Functions

func NewIdentityCert

func NewIdentityCert(subject pkix.Name) ([]byte, []byte, error)

func ParseCert

func ParseCert(certRaw []byte, keyRaw []byte) (*x509.Certificate, *rsa.PrivateKey, error)

Types

type Service

type Service struct {
	IdentityCert *x509.Certificate
	IdentityKey  *rsa.PrivateKey
}

func (Service) CertB64

func (srv Service) CertB64() string

func (Service) CertFingureprint

func (srv Service) CertFingureprint() string

func (*Service) Init

func (srv *Service) Init(subject pkix.Name) error

func (Service) SignRequest

func (srv Service) SignRequest(binarySecurityToken string) (SignedCSR, error)

type SignedCSR

type SignedCSR []byte

func (SignedCSR) CertB64

func (csr SignedCSR) CertB64() string

func (SignedCSR) CertFingureprint

func (csr SignedCSR) CertFingureprint() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL