diff --git a/.gitignore b/.gitignore
index 4eae557109ab924c6f39b6e7d16af00eef5f4ae1..dc0ffec091ea2ce83f42bda4b400dec66c4f443c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,4 @@ openssl.cnf
 CA.key
 CA.crt
 CA.p12
+server.pid
diff --git a/Makefile b/Makefile
index 6c6d41a4d953fd3519d6b12c9fc09ad36656c8ad..cc14422411a7f1840bf4f4463d629e9b19a14c88 100644
--- a/Makefile
+++ b/Makefile
@@ -28,3 +28,6 @@ test: clean
 	test "$$(openssl x509 -in certs/www -subject -noout)" = "subject= /CN=www.ssl-ca"
 	test "$$(openssl x509 -in certs/smtp -issuer -noout)" = "issuer= /CN=ssl-ca"
 	test "$$(openssl x509 -in certs/smtp -subject -noout)" = "subject= /CN=smtp.ssl-ca"
+	openssl s_server -accept 8080 -cert certs/www -key keys/www -CAfile CA.crt & echo "$$!" > server.pid
+	kill "$$(cat server.pid)"
+	rm server.pid