Permalink
Browse files

remove SSL tests

This feature is on hold for now, since it never really took
off and kgio-monkey is more-or-less abandoned.  I'm not looking
forward to supporting OpenSSL unless there's interest.

This was mainly intended as an experiment to deal with a bad
hardware/firmware situation on a LAN I have.  It allowed SSL
to abort on corrupt packets.
  • Loading branch information...
1 parent 13e744d commit 5e4a2deafacd63a3e1a3f048eaf56a213174b3cc Eric Wong committed Feb 19, 2014
Showing with 1 addition and 126 deletions.
  1. +0 −1 script/isolate_for_tests
  2. +0 −1 t/.gitignore
  3. +1 −5 t/GNUmakefile
  4. +0 −71 t/sslgen.sh
  5. +0 −48 t/t0600-https-server-basic.sh
View
@@ -17,7 +17,6 @@ opts = {
pid = fork do
Isolate.now!(opts) do
gem 'raindrops', '0.12.0'
- gem 'kgio-monkey', '0.4.0'
gem 'kgio', '2.8.1'
gem 'rack', '1.5.2'
end
View
@@ -2,4 +2,3 @@
/.dep+*
/*.crt
/*.key
-/ssl-stamp
View
@@ -45,11 +45,7 @@ random_blob:
dd if=/dev/urandom bs=1M count=30 of=$@.$(pid)
mv $@.$(pid) $@
-ssl-stamp:
- ./sslgen.sh
- > $@
-
-$(T): random_blob ssl-stamp
+$(T): random_blob
dependencies := socat curl
deps := $(addprefix .dep+,$(dependencies))
View
@@ -1,71 +0,0 @@
-#!/bin/sh
-set -e
-
-lock=$0.lock
-while ! mkdir $lock 2>/dev/null
-do
- echo >&2 "PID=$$ waiting for $lock"
- sleep 1
-done
-pid=$$
-trap 'if test $$ -eq $pid; then rmdir $lock; fi' EXIT
-
-certinfo() {
- echo US
- echo Hell
- echo A Very Special Place
- echo Monkeys
- echo Poo-Flingers
- echo 127.0.0.1
- echo kgio@bogomips.org
-}
-
-certinfo2() {
- certinfo
- echo
- echo
-}
-
-ca_certinfo () {
- echo US
- echo Hell
- echo An Even More Special Place
- echo Deranged Monkeys
- echo Poo-Hurlers
- echo 127.6.6.6
- echo unicorn@bogomips.org
-}
-
-openssl genrsa -out ca.key 1024
-ca_certinfo | openssl req -new -x509 -days 666 -key ca.key -out ca.crt
-
-openssl genrsa -out bad-ca.key 1024
-ca_certinfo | openssl req -new -x509 -days 666 -key bad-ca.key -out bad-ca.crt
-
-openssl genrsa -out server.key 1024
-certinfo2 | openssl req -new -key server.key -out server.csr
-
-openssl x509 -req -days 666 \
- -in server.csr -CA ca.crt -CAkey ca.key -set_serial 1 -out server.crt
-n=2
-mk_client_cert () {
- CLIENT=$1
- openssl genrsa -out $CLIENT.key 1024
- certinfo2 | openssl req -new -key $CLIENT.key -out $CLIENT.csr
-
- openssl x509 -req -days 666 \
- -in $CLIENT.csr -CA $CA.crt -CAkey $CA.key -set_serial $n \
- -out $CLIENT.crt
- rm -f $CLIENT.csr
- n=$(($n + 1))
-}
-
-CA=ca
-mk_client_cert client1
-mk_client_cert client2
-
-CA=bad-ca mk_client_cert bad-client
-
-rm -f server.csr
-
-echo OK
@@ -1,48 +0,0 @@
-#!/bin/sh
-. ./test-lib.sh
-t_plan 7 "simple HTTPS connection tests"
-
-t_begin "setup and start" && {
- rtmpfiles curl_err
- unicorn_setup
-cat > $unicorn_config <<EOF
-ssl do
- listen "$listen"
- ssl_certificate "server.crt"
- ssl_certificate_key "server.key"
-end
-pid "$pid"
-stderr_path "$r_err"
-stdout_path "$r_out"
-EOF
- unicorn -D -c $unicorn_config env.ru
- unicorn_wait_start
-}
-
-t_begin "single request" && {
- curl -sSfv --cacert ca.crt https://$listen/
-}
-
-t_begin "check stderr has no errors" && {
- check_stderr
-}
-
-t_begin "multiple requests" && {
- curl -sSfv --no-keepalive --cacert ca.crt \
- https://$listen/ https://$listen/ 2>> $curl_err >> $tmp
- dbgcat curl_err
-}
-
-t_begin "check stderr has no errors" && {
- check_stderr
-}
-
-t_begin "killing succeeds" && {
- kill $unicorn_pid
-}
-
-t_begin "check stderr has no errors" && {
- check_stderr
-}
-
-t_done

0 comments on commit 5e4a2de

Please sign in to comment.