gochk
gochk is a command-line tool for various SSL/TLS tasks.
Usage
Download and run the pre-build binaries:
# todo
If you have go installed, you can build your own binary:
go build -o gochk main.go
./gochk --help
# using make
make build
./bin/gochk --help
Sub-commands (see features for available commands):
ca - for creating your own CA.
conn - for interacting with an SSL/TLS endpoint.
cert - for working with certificate files.
Features
Creating your own CA
-
Create the YAML files containing your configuration. For reference, see the example ca configuration.
-
Create the private key and the CA certificate:
# use all defaults:
./gochk ca
# specify filenames:
./gochk ca --key private.pem --cert cert.pem
TODO
The following features are not yet implemented.
Testing a TLS endpoint
- Get the supported SSL/TLS versions.
- List certificate tree.
- Get validity information.
- List valid domains for the certificate.
- Check supported ciphers.
Working with certificates
For signing certificates using a CA from a previous section, or for inspecting a PEM-encoded certificate file.
- Check if a PEM-encoded certificate and a private key match.
- Print the contents of a certificate.