selfcert

package
v1.0.32 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateED25519Key

func GenerateED25519Key(privateKeyPath string, verbose bool) error

GenerateED25519Key generates an ED25519 key pair and saves the private key to a specified file.

func Step1_MakeCertificatAuthority

func Step1_MakeCertificatAuthority(pathCA string, verbose bool)

pathCA "my-keep-private-dir" is the default.

func Step2_MakeEd25519PrivateKeys

func Step2_MakeEd25519PrivateKeys(names []string, odirCert string, verbose bool)

name might be "client" or "node"; odirCert default might be "static/certs/client".

func Step3_MakeCertSigningRequests

func Step3_MakeCertSigningRequests(names []string, emails []string, odirCert string)

func Step4_MakeCertificates

func Step4_MakeCertificates(odirCA string, names []string, odirCerts string, verbose bool)

func Step5_ViewCertificate

func Step5_ViewCertificate(path string)

optional

func Step6_LoadKeyPair

func Step6_LoadKeyPair(privateKeyPath, certPath string)

optional, for further use of keys.

typcially:

privateKeyPath = "static/certs/server/node.key"
certKeyPath = "static/certs/server/node.crt"

Types

This section is empty.

Jump to

Keyboard shortcuts

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