How to use the https server – Zilog EZ80F91AZA User Manual
Page 60

UM020107-1211
How to Use the HTTPS Server
ZTP Network Security SSL Plug-In
User Manual
54
How to Use the HTTPS Server
The SSL libraries contain an HTTPS server that can serve encrypted web pages to client
browsers. This HTTPS server is initialized by calling the
https_init
API. This API
takes the same number and type of parameters as the standard HTTP server API.
For example, to initialize the standard HTTP server in ZTP, the following command is
used:
http_init(http_defmethods,httpdefheaders,website,80);
To initialize the HTTPS server, the following command is used:
https_init(http_defmethods,httpdefheaders,website,443);
The HTTPS server will be accessible to clients using the same version of the SSL hand-
shake protocol as the ZTP Network Security SSL Plug-In. Therefore, if the SSL version 2,
SSL version 3, and TLS version 1 handshake protocols have all been initialized in server
mode, the HTTPS server will be accessible to SSL clients using any of these protocol ver-
sions. For more information about initializing these different SSL protocols, see the
Handshake Protocol Initialization
It is possible to have both secure and nonsecure web servers running at the same time.
However, the two webservers must be on different ports. The port number used for nonse-
cure HTTP servers is 80; for secure HTTP servers (HTTP over SSL or HTTPS), use port
443.
For more information about the HTTP (or HTTPS) server, refer to the section headed How
to Use HTTP in the
.
Limitations of the ZTP HTTPS Server
Consider the following points when using the ZTP HTTPS server.
1. It could become necessary to configure your client browser to support the same ver-
sion of SSL that is used by the ZTP HTTPS server; consult the documentation for
your browser for configuration assistance. Using Microsoft Internet Explorer as an
example, navigate to
Tools
→
Internet Options
, click the
Advanced
tab, and ensure
that the appropriate SSL protocols are selected.
Advanced tab in the Internet Options dialog in Internet Explorer.