cert

package
v0.0.0-...-33a4775 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signer

type Signer struct {
	// contains filtered or unexported fields
}

func NewSigner

func NewSigner() (*Signer, error)

NewSigner creates a new Signer with a generated private key.

func (*Signer) PublicKey

func (s *Signer) PublicKey() (string, error)

PublicKey returns the public key in PKIX format.

func (*Signer) Sign

func (s *Signer) Sign(content string) (string, string, error)

Sign signs the content with the private key and returns: base64 encoded signature, base64 encoded content and error.

Jump to

Keyboard shortcuts

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