There are specific web-based generators (often used by developers) that generate self-signed certificates.