commit - e6ab6b25fce38c8f1d700becea395ae41ced1555
commit + c064f3de1d3eac4784f185dce4ddf029e0429ead
blob - 4d3b75d5d88013943550515b2d13beaf1e97028f
blob + 0c8a4aeabc282f6e91e216e2f7ad83750b034c00
--- regress/regress
+++ regress/regress
run_test test_macro_expansion
run_test test_174_bugfix
run_test test_proxy_relay_to
+run_test test_proxy_with_certs
tests_done
blob - ae2feed94a912d43ce1bbb66fd017280caa6d550
blob + 42fc77f9fb74b0e795540793896065e4a8e1b552
--- regress/tests.sh
+++ regress/tests.sh
cert "$PWD/cert.pem"
key "$PWD/key.pem"
proxy relay-to "localhost:$port"
+}
+EOF
+ run
+
+ ggflags="-P localhost:$port -H localhost.local"
+
+ fetch /
+ check_reply "20 text/gemini" "# hello world"
+}
+
+test_proxy_with_certs() {
+ gen_config '' 'require client ca "'$PWD'/testca.pem"'
+ # append config for second host
+ cat <<EOF >> reg.conf
+server "localhost.local" {
+ cert "$PWD/cert.pem"
+ key "$PWD/key.pem"
+ proxy {
+ relay-to "localhost:$port"
+ cert "$PWD/valid.crt"
+ key "$PWD/valid.key"
+ }
}
EOF
run