run_demo_server_www.bsh

# =========================================================
# OpenSSL demo server (as a web server)
# run as a web server
# (connect to it using a web browser, port 4848)
# =========================================================

echo
echo "+----------------------------------------------------+"
echo "+ OpenSSL Demo Server (www)                          +"
echo "+                                                    +"
echo "+ This script executes the TLS-enabled demonstration +"
echo "+ web server which is part of OpenSSL. The server    +"
echo "+ is listening on port 4848.                         +"
echo "+                                                    +"
echo "+ Use a web browser to connect to the server.        +"
echo "+   https://localhost:4848                           +"
echo "+   https://abc.com:4848                             +"
echo "+----------------------------------------------------+"
echo

openssl s_server -state -accept 4848 -www \
        -cert certs/server.cert.pem \
        -key keys/server.key.pem