Skip to content

Commit 14b4613

Browse files
committed
fix: clarify cert and key files
1 parent 0f8b3c0 commit 14b4613

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

content/nap-waf/v5/admin-guide/policy-lifecycle-management.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -408,9 +408,13 @@ http {
408408
```bash
409409
export JWT=<your-nginx-jwt-token>
410410
export NGINX_REGISTRY_TOKEN=<base64-encoded-docker-credentials>
411-
export NGINX_CERT=<base64-encoded-nginx-cert>
412-
export NGINX_KEY=<base64-encoded-nginx-key>
411+
export NGINX_CERT=$(cat /path/to/your/nginx-repo.crt | base64 -w 0)
412+
export NGINX_KEY=$(cat /path/to/your/nginx-repo.key | base64 -w 0)
413413
```
414+
415+
{{< call-out "note" >}}
416+
**NGINX Repository Credentials**: Replace `/path/to/your/nginx-repo.crt` and `/path/to/your/nginx-repo.key` with the actual paths to your NGINX repository certificate and key files. These are typically provided by NGINX when you get access to the private registry. The files may have similar names like `nginx-repo.crt` and `nginx-repo.key` or `nginx.crt` and `nginx.key`.
417+
{{< /call-out >}}
414418

415419
2. **Pull the Helm Chart**
416420

@@ -497,7 +501,7 @@ http {
497501
--set appprotect.policyController.enable=true \
498502
--set dockerConfigJson=$NGINX_REGISTRY_TOKEN \
499503
--set appprotect.config.nginxJWT=$JWT \
500-
--set appprotect.nginxRepo.nginxCert=$NGINX_CERT \
504+
--set appprotect.nginxRepo.nginxCrt=$NGINX_CERT \
501505
--set appprotect.nginxRepo.nginxKey=$NGINX_KEY
502506
```
503507

@@ -952,8 +956,8 @@ To verify that the policy bundles are being deployed and enforced correctly:
952956
```bash
953957
export JWT=<your-nginx-jwt-token>
954958
export NGINX_REGISTRY_TOKEN=<base64-encoded-docker-credentials>
955-
export NGINX_CERT=<base64-encoded-nginx-cert>
956-
export NGINX_KEY=<base64-encoded-nginx-key>
959+
export NGINX_CERT=$(cat /path/to/your/nginx-repo.crt | base64 -w 0)
960+
export NGINX_KEY=$(cat /path/to/your/nginx-repo.key | base64 -w 0)
957961
```
958962

959963
2. **Pull the new Helm Chart version**
@@ -1037,7 +1041,7 @@ To verify that the policy bundles are being deployed and enforced correctly:
10371041
--set appprotect.policyController.enable=true \
10381042
--set dockerConfigJson=$NGINX_REGISTRY_TOKEN \
10391043
--set appprotect.config.nginxJWT=$JWT \
1040-
--set appprotect.nginxRepo.nginxCert=$NGINX_CERT \
1044+
--set appprotect.nginxRepo.nginxCrt=$NGINX_CERT \
10411045
--set appprotect.nginxRepo.nginxKey=$NGINX_KEY
10421046
```
10431047

0 commit comments

Comments
 (0)