Utility class for generating self-signed certificates