That depends of course on what type of http server you are using. Assuming it is Apache httpd, you can check this link for a description. It's for Debian so skip the setup and go ahead to the configuration part "Generating A Certificate": Setting up an SSL server with Apache2