- new keys and certs for dnscrypt tests.

git-svn-id: file:///svn/unbound/trunk@4318 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2017-08-29 08:48:19 +00:00
parent f5a2cb3593
commit cfcf5437f4
30 changed files with 48 additions and 8 deletions

38
dnscrypt/testdata/gencert.sh vendored Executable file
View File

@ -0,0 +1,38 @@
#!/bin/bash
CERT_EXPIRE_DAYS="$(( 365 * 15 ))"
DIR="$(dirname "$0")"
if [[ "$PWD" != *tdir ]]
then
echo "You should run this script with a .tdir directory"
exit 1
fi
for i in 1 2
do
# Ephemeral key
rm -f "${i}.key"
dnscrypt-wrapper --gen-crypt-keypair \
--crypt-secretkey-file="${i}.key" \
--provider-publickey-file="${DIR}/keys${i}/public.key" \
--provider-secretkey-file="${DIR}/keys${i}/secret.key"
# Cert file
for cipher in salsa chacha
do
rm -f "${i}_${cipher}.cert"
extraarg=""
if [ "${cipher}" == "chacha" ]
then
extraarg="-x"
fi
dnscrypt-wrapper ${extraarg} --gen-cert-file \
--provider-cert-file="${i}_${cipher}.cert" \
--crypt-secretkey-file="${i}.key" \
--provider-publickey-file="${DIR}/keys${i}/public.key" \
--provider-secretkey-file="${DIR}/keys${i}/secret.key" \
--cert-file-expire-days="${CERT_EXPIRE_DAYS}"
done
done

1
dnscrypt/testdata/keys1/public.key vendored Normal file
View File

@ -0,0 +1 @@
¸_A¡O#÷ÛÈfó—ÌoD¶_<C2B6>eŶ)|'T¦éÜòO<C3B2>

1
dnscrypt/testdata/keys1/secret.key vendored Normal file
View File

@ -0,0 +1 @@
-6\Uùõñh`^"…ºz/C9 óˆ¸_A¡O#÷ÛÈfó—ÌoD¶_<C2B6>eŶ)|'T¦éÜòO<C3B2>

1
dnscrypt/testdata/keys2/public.key vendored Normal file
View File

@ -0,0 +1 @@
ΓR ς<>ύeµτ{φl<1A>ΑKΛ€Ξ:5r\±}KΣηƒ

1
dnscrypt/testdata/keys2/secret.key vendored Normal file
View File

@ -0,0 +1 @@
ηi% 5 fΝν Ιϋ<CE99>ν BnκΝ―.ΊΓR ς<>ύeµτ{φl<1A>ΑKΛ€Ξ:5r\±}KΣηƒ

View File

@ -2,6 +2,7 @@
- Fix #1414: fix segfault on parse failure and log_replies.
- zero qinfo in handle_request, this zeroes local_alias and also the
qname member.
- new keys and certs for dnscrypt tests.
28 August 2017: Wouter
- Fix #1415: patch to free dnscrypt environment on reload.

Binary file not shown.

Binary file not shown.

BIN
testdata/dnscrypt_cert.tdir/1_salsa.cert vendored Normal file

Binary file not shown.

View File

@ -1,2 +1 @@
°Ů`˝éj0ČuĽx¶t[
uRŞł@ť;f]Z<
m7÷ЯБб┐x;▒%в╦У░И*∙эR╞Дс╞╧mD╙Я

Binary file not shown.

BIN
testdata/dnscrypt_cert.tdir/2_salsa.cert vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,2 +1 @@
°Ů`˝éj0ČuĽx¶t[
uRŞł@ť;f]Z<
m7÷ЯБб┐x;▒%в╦У░И*∙эR╞Дс╞╧mD╙Я

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,2 +1 @@
°Ů`˝éj0ČuĽx¶t[
uRŞł@ť;f]Z<
m7÷ЯБб┐x;▒%в╦У░И*∙эR╞Дс╞╧mD╙Я

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1 @@
®öÝìK¬‡#€4ùsŽ pèÖôÁæÀx!¹»AŠ"mM

Binary file not shown.

Binary file not shown.

View File

@ -1,2 +1 @@
°Ů`˝éj0ČuĽx¶t[
uRŞł@ť;f]Z<
m7÷ЯБб┐x;▒%в╦У░И*∙эR╞Дс╞╧mD╙Я