certgen is a simple tool to generate self-signed certificates, and provides SAN certificates with DNS and IP entries.