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

Rename server pid file to be hidden.

parent a6fdbdb7
No related branches found
No related tags found
No related merge requests found
...@@ -8,4 +8,4 @@ openssl.cnf ...@@ -8,4 +8,4 @@ openssl.cnf
CA.key CA.key
CA.crt CA.crt
CA.p12 CA.p12
server.pid .server.pid
...@@ -5,7 +5,7 @@ install: ...@@ -5,7 +5,7 @@ install:
chmod 755 /usr/local/bin/ssl-ca chmod 755 /usr/local/bin/ssl-ca
clean: clean:
rm -rf openssl.cnf certs keys CA.key CA.crt CA.p12 rm -rf openssl.cnf certs keys CA.key CA.crt CA.p12 .server.pid
test: clean test: clean
./ssl-ca init ./ssl-ca init
...@@ -28,6 +28,6 @@ test: clean ...@@ -28,6 +28,6 @@ test: clean
test "$$(openssl x509 -in certs/www -subject -noout)" = "subject= /CN=www.ssl-ca" 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 -issuer -noout)" = "issuer= /CN=ssl-ca"
test "$$(openssl x509 -in certs/smtp -subject -noout)" = "subject= /CN=smtp.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 openssl s_server -accept 15876 -cert certs/www -key keys/www -CAfile CA.crt -quiet & echo "$$!" > .server.pid
kill "$$(cat server.pid)" kill "$$(cat .server.pid)"
rm 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