How can I generate a self-signed certificate? [closed]

view story

http://serverfault.com – I'm not prepared to pay for CA signed certificate I'll be signing my own. I'm pretty certain that my Host provides SSL (I'm checking on that). I'm just wondering how I'm supposed to use SSL in order to secure a login page and perhaps a couple of folders. How can I generate a Self-signed SSL certificate? (HowTos)