When you use openssl req -x509 -new -nodes -key my.key -days 366 -out my.pem
to generate a self-signed certificate, it prompts you for a bunch of information, such as "Country Name (2 letter code)", etc.
Is there any way to automate the responses to these prompts, making the process non-interactive?
The following works for me: