ca

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package ca will handle the creation of certificates for TSL encrypted communication Credits: Shane Utt https://shaneutt.com/blog/golang-ca-and-signed-cert-go/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseAndSum

func ParseAndSum(cert string) (sha256s, sha1s string, err error)

ParseAndSum will take the user provided cert and return the sha256 and sha1 sum

func Setup

func Setup() (serverTLSConf *tls.Config, sha256s, sha1s string, err error)

Setup will deliver a fully initialized CA and server cert

func Sum

func Sum(cert []byte) (sha256s, sha1s string)

Sum will give the sha256 and sha1 sum of the certificate

Types

This section is empty.

Jump to

Keyboard shortcuts

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