I'd like to use SSL on a login page I have.

I know you can buy a certificate...But I've seen a site who has a certificate to himself issued to himself.

How can you do that ?