The procedure for that is the same as for the
Apache httpd. You can find lots of documents for
that around the web.
Documentation from Apache httpd covers that:
The configuration directives are the same:
There is also example script for building self signed
certificates that you might find usefull: