fpca

package
v0.0.0-...-e495a67 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: AGPL-3.0-or-later Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FPCA

type FPCA struct {
	Namespace string            // the name space that we are signing. I.E. <cn>@@example.com. Specifiy the part after the @@."
	CaCert    *x509.Certificate // The SubCa that signs the client certificates.
	CaPrivKey *rsa.PrivateKey   // The private key of the SubCA that does the (actual) signing.
}

The First Party Certificate Authority signs

func (*FPCA) SignClientCert

func (fpca *FPCA) SignClientCert(CN string, pubkey *rsa.PublicKey) ([]byte, error)

SignUpPubkey signs a public key, cn combo with our CAPrivKey and returns the raw DER-encoded bytes. We sign anything. Caller is responsible for <cn>@@<namespace> validation.

Jump to

Keyboard shortcuts

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