Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1222 from alorbach/ksi-i1206
Ksi i1206
- Loading branch information
Showing
9 changed files
with
249 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
# rsgtutil utility test | ||
# Verifies sample logdata against public ksi verification repository. | ||
# Adds --cnstr parameter | ||
# | ||
# This file is part of the rsyslog project, released under ASL 2.0 | ||
# | ||
# Copyright 2016 Rainer Gerhards and Adiscon GmbH. | ||
RSYSLOG_KSI_BIN="http://verify.guardtime.com/ksi-publications.bin" | ||
RSYSLOG_KSI_DEBUG="--show-verified" | ||
RSYSLOG_KSI_LOG="ksi-sample.log" | ||
|
||
echo \[ksi-verify-cnstr-long.sh\]: testing rsgtutil verify function \(With cnstr param\) - long options | ||
. $srcdir/diag.sh init | ||
|
||
echo "running rsgtutil command with long options" | ||
../tools/rsgtutil $RSYSLOG_KSI_DEBUG --verify --publications-server $RSYSLOG_KSI_BIN --cnstr KSI_CERT_EMAIL=publications@guardtime.com $srcdir/testsuites/$RSYSLOG_KSI_LOG | ||
|
||
RSYSLOGD_EXIT=$? | ||
if [ "$RSYSLOGD_EXIT" -ne "0" ]; then # EX_OK | ||
if [ "$RSYSLOGD_EXIT" -eq "69" ]; then # EX_UNAVAILABLE | ||
echo "[ksi-verify-cnstr-long.sh]: rsgtutil verify failed with service unavailable (does not generate an error)" | ||
exit 77; | ||
else | ||
echo "[ksi-verify-cnstr-long.sh]: rsgtutil verify failed with error: " $RSYSLOGD_EXIT | ||
exit 1; | ||
fi | ||
fi | ||
|
||
# Cleanup temp files | ||
rm -f rsgtutil.out*.log | ||
|
||
echo SUCCESS: rsgtutil verify function \(With cnstr param\) - long options |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
# rsgtutil utility test | ||
# Verifies sample logdata against public ksi verification repository. | ||
# Adds -C parameter | ||
# | ||
# This file is part of the rsyslog project, released under ASL 2.0 | ||
# | ||
# Copyright 2016 Rainer Gerhards and Adiscon GmbH. | ||
RSYSLOG_KSI_BIN="http://verify.guardtime.com/ksi-publications.bin" | ||
RSYSLOG_KSI_DEBUG="-s" | ||
RSYSLOG_KSI_LOG="ksi-sample.log" | ||
|
||
echo \[ksi-verify-cnstr-short.sh\]: testing rsgtutil verify function \(With cnstr param\) - short options | ||
. $srcdir/diag.sh init | ||
|
||
echo "running rsgtutil command with short options" | ||
../tools/rsgtutil $RSYSLOG_KSI_DEBUG -t -P $RSYSLOG_KSI_BIN -C KSI_CERT_EMAIL=publications@guardtime.com $srcdir/testsuites/$RSYSLOG_KSI_LOG | ||
|
||
RSYSLOGD_EXIT=$? | ||
if [ "$RSYSLOGD_EXIT" -ne "0" ]; then # EX_OK | ||
if [ "$RSYSLOGD_EXIT" -eq "69" ]; then # EX_UNAVAILABLE | ||
echo "[ksi-verify-cnstr-short.sh]: rsgtutil verify failed with service unavailable (does not generate an error)" | ||
exit 77; | ||
else | ||
echo "[ksi-verify-cnstr-short.sh]: rsgtutil verify failed with error: " $RSYSLOGD_EXIT | ||
exit 1; | ||
fi | ||
fi | ||
|
||
# Cleanup temp files | ||
rm -f rsgtutil.out*.log | ||
|
||
echo SUCCESS: rsgtutil verify function \(With cnstr param\) - short options |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.