ssl

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Generate SSL Certs via this simple to use ssl package.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(certPath string, keyPath string) error

func Generate

func Generate(options map[string]string) error
Example
package main

import (
	"simonwaldherr.de/go/golibs/ssl"
)

func main() {
	options := map[string]string{}
	options["certPath"] = "x.cert"
	options["keyPath"] = "x.key"
	options["host"] = "*"
	options["countryName"] = "DE"
	options["provinceName"] = "Bavaria"
	options["organizationName"] = "Lorem Ipsum Ltd"
	options["commonName"] = "*"
	ssl.Generate(options)

}
Output:

Types

This section is empty.

Jump to

Keyboard shortcuts

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