2022-11-29 19:15:59 +00:00
|
|
|
# CAcert signer client
|
|
|
|
|
|
|
|
This is the CAcert signer client implementation that sends commands to the signer and handles certificate
|
|
|
|
revocation lists (CRLs), OpenPGP public key signatures and X.509 certificates.
|
|
|
|
|
|
|
|
## Development preconditions
|
|
|
|
|
|
|
|
You will need GNU make to build the application. On Debian systems you can install GNU make using:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
sudo apt install make
|
|
|
|
```
|
|
|
|
|
2022-12-03 12:41:08 +00:00
|
|
|
Install [go](https://go.dev/) >= 1.19, [golangci-lint](https://golangci-lint.run/usage/install/) >= 1.50.0 and
|
2022-11-29 19:15:59 +00:00
|
|
|
[goreleaser](https://goreleaser.com/install/), as these are used for building and linting the application.
|
|
|
|
|
|
|
|
Read the documentation of these tools, to find out how to use them.
|
|
|
|
|
|
|
|
## Building the binary
|
|
|
|
|
2022-12-03 11:58:28 +00:00
|
|
|
There is a `Makefile` to build the `signerclient` binary. Run
|
2022-11-29 19:15:59 +00:00
|
|
|
|
|
|
|
```shell
|
|
|
|
make
|
|
|
|
```
|
|
|
|
|
|
|
|
to run linting, tests and binary builds.
|
2022-12-03 11:58:28 +00:00
|
|
|
|
|
|
|
## Running the signer client
|
|
|
|
|
|
|
|
The signer client requires a YAML configuration file to know some information about its runtime environment. The
|
|
|
|
default configuration file name is `config.yaml` in the working directory.
|
|
|
|
|
|
|
|
### Generating a configuration file
|
|
|
|
|
|
|
|
Example configuration data is generated when the client is run with the `-generate-config` command line argument:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
./signerclient -generate-config
|
|
|
|
```
|
|
|
|
|
|
|
|
### Start the client
|
|
|
|
|
|
|
|
With `config.yaml` in the current directory you can start the client:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
./signerclient
|
|
|
|
```
|
|
|
|
|
|
|
|
### Supported command line arguments
|
|
|
|
|
|
|
|
To get a list of supported command line arguments run:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
./signerclient -help
|
|
|
|
```
|