spaza I'm trying to finish creating certificates by following the HOWTO http://openvpn.net/index.php/open-source/documentation/howto.html#pki And I keep getting this error when using build-ca: This is on a Windows 7 64bit machine. I had to create the openssl\ssl\ directory and put in the openssl.cnf file from openvpn to get around another error where it was trying to open the cnf file from the former non existant directory.
janjust check the file 'openssl.cnf' , line 117; most likely it will read stateOrProvinceName_default = $ENV::KEY_PROVINCE is this env var set in the 'vars' batch file?
spaza janjust wrotecheck the file 'openssl.cnf' , line 117; most likely it will read stateOrProvinceName_default = $ENV::KEY_PROVINCE is this env var set in the 'vars' batch file? Yes: set KEY_COUNTRY=US KEY_PROVINCE=WA KEY_CITY=xx KEY_ORG=HomeVPN KEY_EMAIL=xx@xx.com
janjust you need to specify all of them separately (it's a DOS batch file): set KEY_COUNTRY= set KEY_PROVINCE=... after sourcing the vars.bat file, type echo %KEY_PROVINCE% to ensure that it is set.
spaza Ah, tyvm. The reason it wasn't working for me was that I went into the batch file Vars.bat and changed the text inside it.
janjust you can do that as well, but sometimes the vars.bat has the wrong line feeds ; SET lines in a batch file need to be specified on separate lines, i.e. set KEY_COUNTRY= set KEY_PROVINCE=... etc . A single line SET A=B C=D does not work