Updating openssl certificate

My ssl certificate expired in Debian. So to create a new one use this command: openssl req$@ -new -x509 -days 3650 -nodes -out /etc/apache2/apache.pem (location of .pem) -keyout /etc/apache2/ssl/apache.pem (location of .pem)
Note the extra lang time to live. Check out this helpful page.
Edit:I’ve got this fix from a former colleague of mine.