Generate a self-signed certificate and a corresponding key-pair, storing both in a file
openssl req -new -x509 -newkey rsa:4096 -keyout filename.key -out filename.cert -subj "/C=XX/CN=foobar" -days 365