tg: go.aporeto.io/tg/tgnoob Index | Files

package tgnoob

import "go.aporeto.io/tg/tgnoob"

Package tgnoob is depreacted and shold not be used.

Index

Package Files

constants.go doc.go helpers.go noob.go

func CreateCA Uses

func CreateCA(
    name string,
    organization string,
    password string,
    out string,
) (string, string, error)

CreateCA creates a Certificates Authority Certificate.

func CreateClientCertificate Uses

func CreateClientCertificate(
    name string,
    organization string,
    password string,
    signingCertPath string,
    signingCertKeyPath string,
    signingCertKeyPass string,
    dns []string,
    ips []string,
    out string,
) (string, string, error)

CreateClientCertificate creates a client certificate.

func CreateServerCertificate Uses

func CreateServerCertificate(
    name string,
    organization string,
    password string,
    signingCertPath string,
    signingCertKeyPath string,
    signingCertKeyPass string,
    dns []string,
    ips []string,
    out string,
) (string, string, error)

CreateServerCertificate creates a client certificate.

func CreateSignedCA Uses

func CreateSignedCA(
    name string,
    organization string,
    password string,
    signingCertPath string,
    signingCertKeyPath string,
    signingCertKeyPass string,
    out string,
) (string, string, error)

CreateSignedCA creates a Certificates Authority Certificate.

func DecryptPrivateKey Uses

func DecryptPrivateKey(
    certKeyPath string,
    password string,
) ([]byte, error)

DecryptPrivateKey decrypts a private key.

func EncryptPrivateKey Uses

func EncryptPrivateKey(
    certKeyPath string,
    password string,
) ([]byte, error)

EncryptPrivateKey encrypts a private key.

func GenerateCSR Uses

func GenerateCSR(
    name string,
    commonName string,
    cert string,
    certKey string,
    certKeyPass string,
    out string,
    force bool,
    algo string,
    country []string,
    state []string,
    city []string,
    address []string,
    zipCode []string,
    org []string,
    orgUnit []string,
    dns []string,
    ips []string,
    policies []string,
) error

GenerateCSR generates a new CSR with the given parameters.

func GenerateCertificate Uses

func GenerateCertificate(
    name string,
    commonName string,
    password string,
    isCA bool,
    authServer bool,
    authClient bool,
    authEmail bool,
    p12 bool,
    p12Pass string,
    out string,
    force bool,
    algo string,
    signingCertPath string,
    signingCertKeyPath string,
    signingCertKeyPass string,
    country []string,
    state []string,
    city []string,
    address []string,
    zipCode []string,
    org []string,
    orgUnit []string,
    dns []string,
    ips []string,
    duration time.Duration,
    policies []string,
) error

GenerateCertificate is a wrapper on top of tglib.IssueCertificate. Generates a new certificate and store it in the out directory.

func SignCSR Uses

func SignCSR(
    name string,
    isCa bool,
    authServer bool,
    authClient bool,
    authEmail bool,
    out string,
    force bool,
    algo string,
    signingCertPath string,
    signingCertKeyPath string,
    signingCertKeyPass string,
    csr []string,
    duration time.Duration,
    policies []string,

) error

SignCSR signs a CSR.

func VerifyCert Uses

func VerifyCert(
    certPath string,
    signerPath string,
    authServer bool,
    authClient bool,
    authEmail bool,
) error

VerifyCert verifies a certificate.

Package tgnoob imports 13 packages (graph) and is imported by 2 packages. Updated 2019-05-14. Refresh now. Tools for package owners.