Skip to content

Commit d6f61b0

Browse files
authored
Cert Script update (#43)
* cert script updates * lab3,4 updates
1 parent 3a02a40 commit d6f61b0

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

labs/lab2/generate_certs.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
echo "Generate 1-day cert."
2-
openssl req -x509 -nodes -days 1 -newkey rsa:2048 -keyout nginx-oss/etc/ssl/nginx/1-day.key -out nginx-oss/etc/ssl/nginx/1-day.crt -subj "/CN=NginxPlusBasics"
2+
openssl req -x509 -nodes -days 1 -newkey rsa:2048 -keyout nginx-oss/etc/ssl/nginx/1-day.key -out nginx-oss/etc/ssl/nginx/1-day.crt -subj "/CN=$NAME-NginxOneWorkshop"
33
echo "Generate 30-day cert."
4-
openssl req -x509 -nodes -days 30 -newkey rsa:2048 -keyout nginx-oss/etc/ssl/nginx/30-day.key -out nginx-oss/etc/ssl/nginx/30-day.crt -subj "/CN=NginxPlusBasics"
4+
openssl req -x509 -nodes -days 30 -newkey rsa:2048 -keyout nginx-oss/etc/ssl/nginx/30-day.key -out nginx-oss/etc/ssl/nginx/30-day.crt -subj "/CN=$NAME-NginxOneWorkshop"
5+
echo "copy certs to lab5 for future labs"
6+
cp nginx-oss/etc/ssl/nginx/1-day.* ../lab5/nginx-oss/etc/ssl/nginx/
7+
cp nginx-oss/etc/ssl/nginx/30-day.* ../lab5/nginx-oss/etc/ssl/nginx/

labs/lab3/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ Fix the Expired Certificate! If you want to create a new certificate, say with a
186186
1. Create a new `$NAME-91-day` SSL certificate/key pair:
187187

188188
```bash
189-
openssl req -x509 -nodes -days 91 -newkey rsa:2048 -keyout $NAME-91-day.key -out $NAME-91-day.crt -subj "/CN=NginxPlusBasics"
189+
openssl req -x509 -nodes -days 91 -newkey rsa:2048 -keyout $NAME-91-day.key -out $NAME-91-day.crt -subj "/CN=NginxOneWorkshop"
190190

191191
```
192192

labs/lab4/readme.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Notice that the configuration is empty when you first create a Config Sync Group
6060

6161
### Option 1 - Create and add an instance to the group
6262

63-
On this page is a button that says `Add Instance to Config Sync Group`. Click on this.
63+
On _Details_ page is a button that says `Add Instance to Config Sync Group`. Click on this.
6464

6565
<br/>
6666

@@ -244,10 +244,11 @@ A final note... you can _**mix OSS and Plus instances**_ in the same group! The
244244

245245
## Wrap Up
246246

247-
> If you are finished with this lab, you can use Docker Compose to shut down your test environment. Make sure you are in the `lab2` folder:
247+
> If you are finished with this lab, you can use Docker Compose to shut down your test environment.
248+
249+
(**NOTE:** Make sure you are within `labs/lab2` folder before running the command)
248250

249251
```bash
250-
cd ../lab2
251252
docker compose down
252253
```
253254

0 commit comments

Comments
 (0)