Generating certificate for HTTPS server