crypto

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package crypto provides helpers for key generation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenTLS

func GenTLS(opts *GenTLSOpts) (cert, key string, err error)

Types

type GenTLSOpts

type GenTLSOpts struct {
	Organisation string
	Host         string
	ValidFrom    string
	ValidFor     time.Duration
	IsCA         bool
	RsaBits      int
	EcdsaCurve   string
	Ed25519Key   bool
}

Jump to

Keyboard shortcuts

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