Documentation ¶
Index ¶
- func FileDoesNotExist(file string) bool
- func GenerateCA(signer crypto.Signer, sn *big.Int, days int, constraints []string) (string, error)
- func GenerateCert(signer crypto.Signer, ca string, sn *big.Int, name string, days int, ...) (string, string, error)
- func GeneratePrivateKey() (crypto.Signer, string, error)
- func GenerateSerialNumber() (*big.Int, error)
- func New() *cmd
- func ParseSigner(pemValue string) (crypto.Signer, error)
- func Verify(caString, certString, dns string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileDoesNotExist ¶
func GenerateCA ¶
GenerateCA generates a new CA for agent TLS (not to be confused with Connect TLS)
func GenerateCert ¶
func GenerateCert(signer crypto.Signer, ca string, sn *big.Int, name string, days int, DNSNames []string, IPAddresses []net.IP, extKeyUsage []x509.ExtKeyUsage) (string, string, error)
GenerateCert generates a new certificate for agent TLS (not to be confused with Connect TLS)
func GeneratePrivateKey ¶
GeneratePrivateKey generates a new ecdsa private key
func GenerateSerialNumber ¶
GenerateSerialNumber returns random bigint generated with crypto/rand
func ParseSigner ¶
ParseSigner parses a crypto.Signer from a PEM-encoded key. The private key is expected to be the first block in the PEM value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.