Generate TLS keypair for a website in one line with openssl

openssl req -x509 -newkey rsa:4096 -sha256 -nodes -keyout tls.key -out tls.crt -subj "/CN=domain.tld" -days 365