Documentation ¶
Overview ¶
Package tools provides utilities for tests.
certsetup() is one of those utilities. Full credit for it goes to https://gist.github.com/shaneutt
This code was pulled and modified from the following resources: - https://gist.github.com/shaneutt/5e1995295cff6721c89a71d13a71c251 - https://shaneutt.com/blog/golang-ca-and-signed-cert-go/.
USAGE:
go run generate_cert.go
This will generate a CA cert/key pair and use that to sign Server cert/key pair and Client cert/key pair.
Use these certs for tests such as websupport_test and orchestrator_test.
Click to show internal directories.
Click to hide internal directories.