mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 05:40:11 +01:00
32 lines
1.1 KiB
Bash
Executable file
32 lines
1.1 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# This file is Free Software under the MIT License
|
|
# without warranty, see README.md and LICENSES/MIT.txt for details.
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
# SPDX-FileCopyrightText: 2022 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de>
|
|
# Software-Engineering: 2022 Intevation GmbH <https://intevation.de>
|
|
|
|
set -e # to exit if a command in the script fails
|
|
|
|
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 \
|
|
--verbose --insecure localhost
|
|
|
|
cat ../checker-results.html
|
|
|
|
echo 'run checker without authorization'
|
|
./bin-linux-amd64/csaf_checker -o ../checker-results-no-clientcert.json \
|
|
--insecure --verbose localhost
|