openssl req
-newkey rsa:4096 -nodes -sha256 -keyout certs/domain.key
-addext ‘subjectAltName = IP:ipaddress’
-x509 -days 365 -out certs/domain.crt
Used this command to regenerate domain.crt and domain.key but i got this error,
req: can’t open “certs/domain.key” for writing, No such file or directory