Skip to content
Snippets Groups Projects
Commit a6fdbdb7 authored by nimrod's avatar nimrod
Browse files

Testing with s_server and s_client WIP.

parent 64be3d09
No related branches found
No related tags found
No related merge requests found
......@@ -8,3 +8,4 @@ openssl.cnf
CA.key
CA.crt
CA.p12
server.pid
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment