You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/testssl.1.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -156,6 +156,7 @@ The same can be achieved by setting the environment variable `WARNINGS`.
156
156
157
157
`--add-ca <CAfile>` enables you to add your own CA(s) in PEM format for trust chain checks. `CAfile` can be a directory containing files with a \.pem extension, a single file or multiple files as a comma separated list of root CAs. Internally they will be added during runtime to all CA stores. This is (only) useful for internal hosts whose certificates are issued by internal CAs. Alternatively ADDTL_CA_FILES is the environment variable for this.
158
158
159
+
`--rating-only` makes testssl.sh do the bare minimum to allow rating to succeed. See RATING for more
159
160
160
161
### SINGLE CHECK OPTIONS
161
162
@@ -448,7 +449,7 @@ set_grade_warning "Documentation is always right"
448
449
449
450
#### Implementing a new check which contains grade caps
450
451
451
-
When implementing a new check (be it vulnerability or not) that sets grade caps, the `set_rating_state()` has to be updated (i.e. the `$do_mycheck` variable-name has to be added to the loop, and `$nr_enabled` if-statement has to be incremented)
452
+
When implementing a new check (be it vulnerability or not) that sets grade caps, the `set_rating_state()` has to be updated (i.e. the `$do_mycheck` variable-name has to be added to the loop, and `$nr_enabled` if-statement has to be incremented), and the `--rating-only` switch statement needs to have `$do_mycheck=true` added
452
453
453
454
The `set_rating_state()` automatically disables rating, if all the required checks are *not* enabled.
454
455
This is to prevent giving out a misleading or wrong grade.
0 commit comments