-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integration Testing is Failing #22
Labels
Comments
Closed
I think this test ( |
Attaching the two files that NIST sent my way for work. pubkey.pem
verify_f#this shell script verifies a NIST Beacon pulse, call is sh verify_f <POSIX time>
# e.g. sh verify_f 1495771320
function verify()
{
t=$1
curl -s https://beacon.nist.gov/rest/record/$t -o rec.xml
xpath rec.xml '/record/version/text()' > beacon.bin 2>/dev/null
printf "%.8x" `xpath rec.xml '/record/frequency/text()' 2>/dev/null` | xxd -r -p -g0 >> beacon.bin
printf "%.16x" `xpath rec.xml '/record/timeStamp/text()' 2>/dev/null` | xxd -r -p -g0 >> beacon.bin
xpath rec.xml '/record/seedValue/text()' 2>/dev/null | xxd -r -p -g0 >> beacon.bin
xpath rec.xml '/record/previousOutputValue/text()' 2>/dev/null | xxd -r -p -g0 >> beacon.bin
printf "%.8x" `xpath rec.xml '/record/statusCode/text()' 2>/dev/null` | xxd -r -p -g0 >> beacon.bin
signature=`xpath rec.xml '/record/signatureValue/text()' rec.xml 2>/dev/null`
len=${#signature}
for((i=${len}-2; i>=0; i=i-2)); do rev="$rev${signature:$i:2}"; done
echo ${rev} | xxd -r -p -g0 > beacon.sig
#/usr/bin/openssl x509 -pubkey -noout -in beacon.cer > beaconpubkey.pem
/usr/bin/openssl dgst -sha512 -verify pubkey.pem -signature beacon.sig beacon.bin > ver.out
input="/Users/peralta/Desktop/BeaconStuff/monitor/ver.out"
while IFS= read -r var
do
if [ "$var" = "Verification Failure" ]
then
echo "$t : Bad signature."
echo "$t : BAD" > status_file
else
echo "$t : signature is good."
fi
done < "$input"
rm rec.xml
rm beacon.bin
rm beacon.sig
# rm beaconpubkey.pem
rm ver.out
}
verify $1 |
urda
added a commit
that referenced
this issue
Sep 11, 2017
Fixed and released. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NistBeacon
is seeing some integration issues with the service at this time. Some records are failing to verify properly.Reproduction Steps:
make integration
Expected behavior:
Test should not fail
Observed behavior:
Tests are failing!
nistbeacon version:
master
branch of projectpython version:
Python 3.5.2
OS and version: macOS 10.12.5
Installed packages:
The text was updated successfully, but these errors were encountered: