Docker certificate issue

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

Hello @kb48815,

Can you give more context information about this issue?
Are you following the lab, tutorial, or something similar and getting this error?

Thanks,
Trung.