use this command
cp /usr/share/zoneinfo/Europe/Madrid /etc/localtime
cp /usr/share/zoneinfo/Europe/Madrid /etc/localtime
openssl req -new -newkey rsa:4096 -days 2 -nodes -x509 -subj "/C=SP/ST=Madrid/L=Madrid/O=Empresa/OU=Internet Services/CN=website.com" -keyout server.key -out server.certview example in github