varasto: github.com/function61/varasto/pkg/sslca Index | Files

package sslca

import "github.com/function61/varasto/pkg/sslca"

Managing a CA and signing server certs. Used in a setting where we control both the servers and clients. Some code borrowed from https://golang.org/src/crypto/tls/generate_cert.go

Index

Package Files

sslca.go

func GenEcP256PrivateKeyPem Uses

func GenEcP256PrivateKeyPem() ([]byte, error)

func SelfSignedServerCert Uses

func SelfSignedServerCert(hostname string, organisationName string, privateKeyPem []byte) ([]byte, error)

Package sslca imports 9 packages (graph) and is imported by 1 packages. Updated 2020-09-08. Refresh now. Tools for package owners.