Skip to content

Commit 29f6048

Browse files
committed
Merge pull request #16 from huddlesj/master
Spell check:Replaced TOCKEN with TOKEN
2 parents 09c464c + 01eeaa3 commit 29f6048

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

demo.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ docker build -t server .
1818

1919
### set up vars
2020
CA_IP=192.168.59.103:33004
21-
POLLENDINA_TOCKEN=$(openssl rand -hex 32)
21+
POLLENDINA_TOKEN=$(openssl rand -hex 32)
2222
COMMON_NAME="hw"
2323

2424
### authorize and lunch container
25-
curl --cacert "cacert.pem" --data "token=${POLLENDINA_TOCKEN}&cn=${COMMON_NAME}" http://$CA_IP/v1/authorize
26-
docker run --name nginx-server -e POLLENDINA_TOCKEN="$POLLENDINA_TOCKEN" -e COMMON_NAME="$COMMON_NAME" -e CA_IP="$CA_IP" -i -t server /bin/bash
25+
curl --cacert "cacert.pem" --data "token=${POLLENDINA_TOKEN}&cn=${COMMON_NAME}" http://$CA_IP/v1/authorize
26+
docker run --name nginx-server -e POLLENDINA_TOKEN="$POLLENDINA_TOKEN" -e COMMON_NAME="$COMMON_NAME" -e CA_IP="$CA_IP" -i -t server /bin/bash
2727

2828
## Build client
2929
cd client
@@ -33,12 +33,12 @@ docker build -t client .
3333

3434
### set up vars
3535
CA_IP=192.168.59.103:33004
36-
POLLENDINA_TOCKEN=$(openssl rand -hex 32)
36+
POLLENDINA_TOKEN=$(openssl rand -hex 32)
3737
COMMON_NAME="client"
3838

3939
### authorize and lunch container
40-
curl --cacert "cacert.pem" --data "token=${POLLENDINA_TOCKEN}&cn=${COMMON_NAME}" http://$CA_IP/v1/authorize
41-
docker run -e POLLENDINA_TOCKEN="$POLLENDINA_TOCKEN" -e COMMON_NAME="$COMMON_NAME" -e CA_IP="$CA_IP" -i -t --link nginx-server:/hw client /bin/bash
40+
curl --cacert "cacert.pem" --data "token=${POLLENDINA_TOKEN}&cn=${COMMON_NAME}" http://$CA_IP/v1/authorize
41+
docker run -e POLLENDINA_TOKEN="$POLLENDINA_TOKEN" -e COMMON_NAME="$COMMON_NAME" -e CA_IP="$CA_IP" -i -t --link nginx-server:/hw client /bin/bash
4242

4343
## test mutual authentication from client to server
4444
curl -v -s -k --key /certs/id.key --cert /certs/id.crt https://hw
@@ -55,6 +55,6 @@ curl -v -s -k --key /certs/id.key --cert /certs/id.crt https://hw
5555
curl -v -debug -s -k --key /certs/id.key --cert /certs/id.crt -X GET https://hw
5656

5757

58-
docker run -e POLLENDINA_TOCKEN="$POLLENDINA_TOCKEN" -e COMMON_NAME="$COMMON_NAME" -e CA_IP="$CA_IP" -i -t --link backstabbing_franklin:/hw customer /bin/bash
58+
docker run -e POLLENDINA_TOKEN="$POLLENDINA_TOKEN" -e COMMON_NAME="$COMMON_NAME" -e CA_IP="$CA_IP" -i -t --link backstabbing_franklin:/hw customer /bin/bash
5959

60-
docker run -e POLLENDINA_TOCKEN="$POLLENDINA_TOCKEN" -e COMMON_NAME="$COMMON_NAME" -e CA_IP="$CA_IP" -i -t server /bin/bash
60+
docker run -e POLLENDINA_TOKEN="$POLLENDINA_TOKEN" -e COMMON_NAME="$COMMON_NAME" -e CA_IP="$CA_IP" -i -t server /bin/bash

how.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ cp cacert.pem server/cacert.pem
2525

2626
```
2727
CA_IP=192.168.59.103:33004
28-
POLLENDINA_TOCKEN=$(openssl rand -hex 32)
28+
POLLENDINA_TOKEN=$(openssl rand -hex 32)
2929
COMMON_NAME="hw"
3030
```
3131

3232
### authorize and lunch container
3333

3434
```
35-
curl --cacert "cacert.pem" --data "token=${POLLENDINA_TOCKEN}&cn=${COMMON_NAME}" http://$CA_IP/v1/authorize
36-
docker run --name nginx-server -e POLLENDINA_TOCKEN="$POLLENDINA_TOCKEN" -e COMMON_NAME="$COMMON_NAME" -e CA_IP="$CA_IP" -i -t server /bin/bash
35+
curl --cacert "cacert.pem" --data "token=${POLLENDINA_TOKEN}&cn=${COMMON_NAME}" http://$CA_IP/v1/authorize
36+
docker run --name nginx-server -e POLLENDINA_TOKEN="$POLLENDINA_TOKEN" -e COMMON_NAME="$COMMON_NAME" -e CA_IP="$CA_IP" -i -t server /bin/bash
3737
```
3838

3939
## Build client
@@ -46,22 +46,22 @@ docker run --name nginx-server -e POLLENDINA_TOCKEN="$POLLENDINA_TOCKEN" -e COMM
4646

4747
```
4848
CA_IP=192.168.59.103:33004
49-
POLLENDINA_TOCKEN=$(openssl rand -hex 32)
49+
POLLENDINA_TOKEN=$(openssl rand -hex 32)
5050
COMMON_NAME="client"
5151
```
5252

5353
### authorize and lunch container
5454

5555
```
56-
curl --cacert "cacert.pem" --data "token=${POLLENDINA_TOCKEN}&cn=${COMMON_NAME}" http://$CA_IP/v1/authorize
57-
docker run -e POLLENDINA_TOCKEN="$POLLENDINA_TOCKEN" -e COMMON_NAME="$COMMON_NAME" -e CA_IP="$CA_IP" -i -t --link nginx-server:/hw client /bin/bash
56+
curl --cacert "cacert.pem" --data "token=${POLLENDINA_TOKEN}&cn=${COMMON_NAME}" http://$CA_IP/v1/authorize
57+
docker run -e POLLENDINA_TOKEN="$POLLENDINA_TOKEN" -e COMMON_NAME="$COMMON_NAME" -e CA_IP="$CA_IP" -i -t --link nginx-server:/hw client /bin/bash
5858
```
5959

6060
## test mutual authentication from client to server
6161

6262
```
6363
curl -v -s -k --key /certs/id.key --cert /certs/id.crt https://hw`
6464
curl -v -debug -s -k --key /certs/id.key --cert /certs/id.crt -X GET https://hw
65-
docker run -e POLLENDINA_TOCKEN="$POLLENDINA_TOCKEN" -e COMMON_NAME="$COMMON_NAME" -e CA_IP="$CA_IP" -i -t --link backstabbing_franklin:/hw customer /bin/bash
66-
docker run -e POLLENDINA_TOCKEN="$POLLENDINA_TOCKEN" -e COMMON_NAME="$COMMON_NAME" -e CA_IP="$CA_IP" -i -t server /bin/bash
65+
docker run -e POLLENDINA_TOKEN="$POLLENDINA_TOKEN" -e COMMON_NAME="$COMMON_NAME" -e CA_IP="$CA_IP" -i -t --link backstabbing_franklin:/hw customer /bin/bash
66+
docker run -e POLLENDINA_TOKEN="$POLLENDINA_TOKEN" -e COMMON_NAME="$COMMON_NAME" -e CA_IP="$CA_IP" -i -t server /bin/bash
6767
```

0 commit comments

Comments
 (0)