tools

package
v0.0.0-...-55ce499 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCert

func GenerateCert(key *ecdsa.PrivateKey) (*pem.Block, *pem.Block, error)

GenerateCert creates a testing self-signed cert for playing with operations

func GenerateKeyPair

func GenerateKeyPair() (*ecdsa.PrivateKey, error)

GenerateKeyPair creates a ECDSA key pair for use in operations

func MarshallPem

func MarshallPem(t string, d []byte) *pem.Block

MarshallPem simple wrapper for outputting PEM block

func WritePemToFile

func WritePemToFile(filename string, block *pem.Block) error

WritePemToFile lets you output the PEM as a file for use elsewhere with testing/otherwise

Types

This section is empty.

Jump to

Keyboard shortcuts

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