Based on #13, we need more error checking when opening files. The CA and CSR files are now checked and return proper error messages in case something goes wrong.
|2 years ago|
|AUTHORS||5 years ago|
|LICENSE||5 years ago|
|README.md||5 years ago|
|TODO||5 years ago|
|create_cert.go||2 years ago|
|create_private_key.go||2 years ago|
|create_public_key.go||4 years ago|
|create_sign_request.go||4 years ago|
|io.go||2 years ago|
|load_private_key.go||2 years ago|
|main.go||4 years ago|
|pem.go||2 years ago|
|sign_input.go||4 years ago|
|type.go||4 years ago|
|verify_input.go||4 years ago|
Pkictl can be used to manage the lifecycle of keys and certificates.
Its main purpose is the creation of certificates and control through rules of the certification process. But it can also be used to sign and verify messages based on private/public keys.
The focus is on easy commands with clear error messages to make work for the admin or user as easy as possible. But it can also be used in scripts to implement automated workflows.
The following commnds will be implemented:
To build pkictl Go 1.4 is required.
The project can be built with
go get github.com/Gibheer/pkictl
which fetches all dependencies needed and builds the binary into your $GOPATH/bin.
To print all commands, use
# ./pkictl Usage: pkictl command args where 'command' is one of: create-private create a new private key create-public create a public key from a private one create-cert-sign create a new certificate sign request help show this help info get info on a file sign sign a certificate request sign-input sign a message with a private key verify-signature verify a signature
Print the help for a command:
./pkictl create-public --help Usage of create-public: -output="STDOUT": path where the generated public key should be stored -private-key="": path to the private key file
The best way to contribute is to use github.com/gibheer/pkictl.