Skip to content

Commit

Permalink
docs: add x509 certificates usage docs (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmolki authored Oct 30, 2023
1 parent e8afd12 commit 4e504da
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,19 @@ docker run --rm \
You can also set `SSL_CERT_DIR` and mount the directory instead of the file.
---
To connect to a Pact Broker that uses **x509 certificates** for client authentication:
```
docker run --rm \
-v <PATH_TO_CLIENT_CERT_FILE_ON_HOST>:/tmp/clientcert.pem \
-v <PATH_TO_CLIENT_KEY_FILE_ON_HOST>:/tmp/clientkey.pem \
-e X509_CLIENT_CERT_FILE=/tmp/clientcert.pem \
-e X509_CLIENT_KEY_FILE=/tmp/clientkey.pem \
pactfoundation/pact-cli:latest ...
```
### Shell access inside Docker container
To meet with [Docker consistency rules](https://github.com/docker-library/official-images#consistency) `sh` access is provided, _NOTE:_ `bash` is not installed in the container
Expand Down

0 comments on commit 4e504da

Please sign in to comment.