Commit a6fdbdb7 authored by nimrod's avatar nimrod
Browse files

Testing with s_server and s_client WIP.

parent 64be3d09
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -8,3 +8,4 @@ openssl.cnf
CA.key
CA.crt
CA.p12
server.pid
+3 −0
Original line number Diff line number Diff line
@@ -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