--- /dev/null
+#!/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
--- /dev/null
+¸_A¡O#÷ÛÈfó\97ÌoD¶_\9deŶ)|'T\ 3¦éÜòO\9d
\ No newline at end of file
--- /dev/null
+-\11&ç\1d6\11\Uùõñh`\ 4^\ 2\1d\12\1f"\85\13ºz/C9\82\ró\88¸_A¡O#÷ÛÈfó\97ÌoD¶_\9deŶ)|'T\ 3¦éÜòO\9d
\ No newline at end of file
--- /dev/null
+ÃR\1f òÒýeµô{öl\1a\88ÁKË\80Î\1e:5r\±}K\12Óç\83
\ No newline at end of file
--- /dev/null
+\ 1çi\ 1%\82 5\vfÍ\99\96í\13\fÉû\8cí\fBnêͯ.º\1d\13\93\12ÃR\1f òÒýeµô{öl\1a\88ÁKË\80Î\1e:5r\±}K\12Óç\83
\ No newline at end of file
- 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.
-°Ù`½\eéj0Èu¼\ 1x\82¶t[
-]Ù\13uRª³@\9d;f]Z<
\ No newline at end of file
+m7\12\9fñâÂ\ 3\83x;\91%׸õ\90é*\95ÜR¯\13äÓ¯¹mDªñ
\ No newline at end of file
-°Ù`½\eéj0Èu¼\ 1x\82¶t[
-]Ù\13uRª³@\9d;f]Z<
\ No newline at end of file
+m7\12\9fñâÂ\ 3\83x;\91%׸õ\90é*\95ÜR¯\13äÓ¯¹mDªñ
\ No newline at end of file
-°Ù`½\eéj0Èu¼\ 1x\82¶t[
-]Ù\13uRª³@\9d;f]Z<
\ No newline at end of file
+m7\12\9fñâÂ\ 3\83x;\91%׸õ\90é*\95ÜR¯\13äÓ¯¹mDªñ
\ No newline at end of file
--- /dev/null
+®öÝìK¬\87#\91\804ùs\8e pèÖôÁæÀx!¹»\13A\8a"mM
\ No newline at end of file
-°Ù`½\eéj0Èu¼\ 1x\82¶t[
-]Ù\13uRª³@\9d;f]Z<
\ No newline at end of file
+m7\12\9fñâÂ\ 3\83x;\91%׸õ\90é*\95ÜR¯\13äÓ¯¹mDªñ
\ No newline at end of file