certcheck is simple utitily to check TLS authentication for a server and client
Install GoLang and ensure $GOPATH is configured. Get the source:
$ mkdir -p $GOPATH/src/github.com/gosuri/certcheck
$ git clone https://github.com/gosuri/certcheck.git $GOPATH/src/github.com/gosuri/certcheck
To build:
$ cd $GOPATH/src/github.com/gosuri/certcheck
$ go build
The above command will create a binary certcheck
in the source directory
The below command will generate cert and key pair for server
and client
. Optionally, replace foo@example.com
with an email.
./gencerts.sh foo@example.com
To run, simply execute certcheck
./certcheck -h
./certcheck -h
Usage of ./certcheck:
-addr=":8080": Address to listen on
-tls-client-cert="client.crt": Path for client TLS cert
-tls-client-key="client.key": Path for client TLS key
-tls-server-cert="server.crt": Path for server TLS cert
-tls-server-key="server.key": Path for server TLS key