Skip to content

Commit

Permalink
Corrects CN for client csr
Browse files Browse the repository at this point in the history
  • Loading branch information
kipparker committed Jul 29, 2024
1 parent 6638017 commit f68ba81
Show file tree
Hide file tree
Showing 5 changed files with 831 additions and 381 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,19 @@ pipenv run uvicorn api.main:app --reload

## Creating self-signed certificates

The docker compose and client.py scripts require a set of self-signed certificates in a certs/ folder. These can be generated using the `certmaker.sh` script in the `scripts` directory.
The docker compose and client.py scripts require a set of self-signed certificates in a certs/ folder. `certmaker.sh` generates a set of certificates suitable for emulating the certificates issued by the Perseus Scheme, and are used by the development server and client testing scripts.

```bash
cd scripts
./certmaker.sh
```

By default, the certmaker script will create a server certificate for the local host it is run on (ie. using the output of `hostname`). This value can be changed by setting the SERVER_HOSTNAME environment variable, eg.

```bash
SERVER_HOSTNAME="perseus-demo-authentication.ib1.org" ./certmaker.sh
```

You will need to create a "certs" directory in the root of the project, and move the generated certificates into it.

### Using client certificates
Expand Down
Loading

0 comments on commit f68ba81

Please sign in to comment.