Problem generation CSR in windows 10 with openssl


Currently, I have openssl 1.1.1.g running on a Windows 10 system.

I have to generate a new CSR with a key, but somehow it shows up with an error. I can’t seem to find out why, I think it has to do with windows 10. My IT guy said they no experience with openssl on windows systems, unfortunately in this specific case i am forced to use windows 10.

They gave me the following command, I think i get the error due the -config path. My location of OPENSSL = C:\OpenSSL-Win64\bin

Even when I try to change it in the config I get an error in Req.

Someone knows the cause?

openssl req -new -newkey rsa:2048 -nodes -out test.csr -keyout test.key -subj '/C=NL/ST=West-Province/L=Ci ty/O=Test of Organisation/OU=LMAO/CN=test.domain.com/' -reqexts SAN -extensions SAN -config <(cat /etc/ssl/openssl.cnf <(printf "[SAN]\nsubjectAltName=DNS:test.domain.com"))