certificate

package
v0.0.0-...-a297e19 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate

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

func New

func New(privateKey, publicKey []byte) *Certificate

func (*Certificate) RevokeKeys

func (c *Certificate) RevokeKeys(serialIDs ...int64) ([]byte, error)

RevokeKeys revokes a list of keys golang.org/x/crypto/ssh not support revoke keys, use ssh-keygen -k to revoke keys e.g ssh-keygen -k -f revoked-keys -s ca list-to-revoke FIXME: if golang.org/x/crypto/ssh support revoke keys, replace this function

func (*Certificate) SignCert

func (c *Certificate) SignCert(
	passphrase []byte,
	publicKey []byte,
	serial uint64, id, principal string,
	validAfter uint64, validBefore uint64,
) ([]byte, error)

SignCert signs a certificate

Jump to

Keyboard shortcuts

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