I am using open ssl on 'windows 2012R2' to generate a self-signed certificate. Using the command below I can generate the certificate, openssl req -new -x509 -key ab.key -out ab.crt.
However, I need to add an extended key usage string Server Authentication (1.3.6.1.5.5.7.3.1) and I can't figure out how to do it in the command above.
I have tried to modify C:\Program Files\OpenSSL-Win64\bin\cnf\openssl.cnf. extendedKeyUsage = serverAuth.
but it was not added extended key usage string.