Skip to content

Commit 192cdd8

Browse files
committed
minor readme edits
1 parent c6df6cd commit 192cdd8

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

labs/lab3/readme.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,24 +181,25 @@ Another nice feature of the NGINX One Console is the ability to quickly see the
181181

182182
Fix the Expired Certificate! If you want to create a new certificate, say with a 91-day expiration, follow these instructions to use `openssl` to create a Self-Signed certificate/key pair, and update your NGINX config files to use the new Certficate.
183183

184-
1. Change your Terminal to the appropriate directory, in this exercise, that would be `labs/lab2/nginx-oss/etc/ssl/nginx`.
185-
186184
1. Create a new `$NAME-91-day` SSL certificate/key pair:
187185

186+
(**NOTE:** Make sure you are within `labs/lab2` folder before running the command)
187+
188188
```bash
189-
openssl req -x509 -nodes -days 91 -newkey rsa:2048 -keyout $NAME-91-day.key -out $NAME-91-day.crt -subj "/CN=NginxOneWorkshop"
189+
openssl req -x509 -nodes -days 91 -newkey rsa:2048 -keyout nginx-oss/etc/ssl/nginx/$NAME-91-day.key -out nginx-oss/etc/ssl/nginx/$NAME-91-day.crt -subj "/CN=NginxOneWorkshop"
190190

191191
```
192192

193193
1. Verify the .crt and .key files were created, in the correct volume mounted folder:
194194

195195
```bash
196-
ls -l
196+
ls -l nginx-oss/etc/ssl/nginx
197197
198198
```
199+
199200
```bash
200201
## Sample output ##
201-
ubuntu@NGINX-Basics:~/Documents/nginx-one-workshops/labs/lab2/nginx-oss/etc/ssl/nginx$ ls -l
202+
ubuntu@NGINX-Basics:~/Documents/nginx-one-workshops/labs/lab2$ ls -l nginx-oss/etc/ssl/nginx
202203
total 32
203204
-rw-rw-r-- 1 ubuntu ubuntu 1131 Mar 19 22:07 1-day.crt
204205
-rw------- 1 ubuntu ubuntu 1704 Mar 19 22:07 1-day.key

0 commit comments

Comments
 (0)