crypto

package
v0.3.0-docs.0...-f96dd80 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package crypto implements key generators.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCsrRequest

func NewCsrRequest(path, host string) (string, string, error)

NewCsrRequest generates a private key and Certificate Signing Request(CSR). This enables us to use custom CA to sign the server certificates. First parameter is the full path to the output directory where the CSR and the key will be stored. The second one is the host (DNSName or IPAddr) for which we are creating the request. The function output is the full path to our new CSR and private key. Eg: (/var/tmp/qed.csr, /var/tmp/qed_key.pem, nil)

func NewEd25519SignerKeysFile

func NewEd25519SignerKeysFile(path string) (string, string, error)

NewEd25519SignerKeysFile generates a new private/public signer key. Input parameter is the full path to the output directory where the keys will be stored. The function output is the full path to our new signer keys and an error. Eg: (/var/tmp/qed_ed25519, /var/tmp/qed_ed25519.pub, nil)

func NewSelfSignedCert

func NewSelfSignedCert(path, host string) (string, string, error)

NewSelfSignedCert generates a new Tls certificate and private key. First parameter is the full path to the output directory where the certificate and the key will be stored. The second one is the host (DNSName or IPAddr) for which we are signing the certificate. The function output is the full path to our new certificate and private key. Eg: (/var/tmp/qed_key.pem, /var/tmp/qed_cert.pem, nil)

Types

This section is empty.

Directories

Path Synopsis
Package hashing implements different hashers and their funcionality.
Package hashing implements different hashers and their funcionality.
Package sign implements funcionality to create signers, which are able to sign messages and verify signed messages.
Package sign implements funcionality to create signers, which are able to sign messages and verify signed messages.

Jump to

Keyboard shortcuts

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