mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-23 00:32:55 +01:00
* Change checking to use client certs and verbose for html as this is what can be displayed on a webbrowser. * Rename the json result file to indicate why the result will differ without using the access of the client certificate.
24 lines
801 B
Bash
Executable file
24 lines
801 B
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 (twice)'
|
|
cd ~/csaf_distribution
|
|
|
|
./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
|
|
|
|
./bin-linux-amd64/csaf_checker -o ../checker-results-no-clientcert.json \
|
|
--insecure --verbose localhost
|