1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 05:40:11 +01:00

Add new way to test checker to tesChecker.sh, create example checker toml config file

This commit is contained in:
JanHoefelmeyer 2023-07-31 13:04:08 +02:00
parent 8aed2c034e
commit 5c8db1c2ad
2 changed files with 16 additions and 1 deletions

View file

@ -0,0 +1,7 @@
format = "json"
insecure = true
client_cert = "./../devca1/testclient1.crt"
client_key = "./../devca1/testclient1-key.pem"
verbose = true
rate = 15
years = 29

View file

@ -10,9 +10,16 @@
set -e # to exit if a command in the script fails
echo '==== run checker (twice)'
echo '==== run checker'
cd ~/csaf_distribution
#echo 'version (checker)'
#./bin-linux-amd64/csaf_checker --version
echo 'run checker with authorization using a toml-config-file and display results'
./bin-linux-amd64/csaf_checker localhost --config="./docs/scripts/checker_test.toml"
echo 'run checker with authorization using command line parameters and display results'
./bin-linux-amd64/csaf_checker -f html -o ../checker-results.html --insecure \
--client-cert ~/devca1/testclient1.crt \
--client-key ~/devca1/testclient1-key.pem \
@ -20,5 +27,6 @@ cd ~/csaf_distribution
cat ../checker-results.html
echo 'run checker without authorization'
./bin-linux-amd64/csaf_checker -o ../checker-results-no-clientcert.json \
--insecure --verbose localhost