go-vitess.v1: gopkg.in/src-d/go-vitess.v1/vt/tlstest Index | Files

package tlstest

import "gopkg.in/src-d/go-vitess.v1/vt/tlstest"

Package tlstest contains utility methods to create test certificates. It is not meant to be used in production.


Package Files



const (
    // CA is the name of the CA toplevel cert.
    CA = "ca"

func CreateCA Uses

func CreateCA(root string)

CreateCA creates the toplevel 'ca' certificate and key, and places it in the provided directory. Temporary files are also created in that directory.

func CreateSignedCert Uses

func CreateSignedCert(root, parent, serial, name, commonName string)

CreateSignedCert creates a new certificate signed by the provided parent, with the provided serial number, name and common name. name is the file name to use. Common Name is the certificate common name.

Package tlstest imports 6 packages (graph). Updated 2019-06-13. Refresh now. Tools for package owners.