I'm trying to finish creating certificates by following the HOWTO http://openvpn.net/index.php/open-sourc ... o.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.
STR_COPY:variable has no value
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: STR_COPY:variable has no value
check the file 'openssl.cnf' , line 117; most likely it will read
is this env var set in the 'vars' batch file?
Code: Select all
stateOrProvinceName_default = $ENV::KEY_PROVINCE
-
- OpenVpn Newbie
- Posts: 3
- Joined: Sun Feb 26, 2012 10:41 pm
Re: STR_COPY:variable has no value
janjust wrote:check the file 'openssl.cnf' , line 117; most likely it will readis this env var set in the 'vars' batch file?Code: Select all
stateOrProvinceName_default = $ENV::KEY_PROVINCE
Yes:
set KEY_COUNTRY=US KEY_PROVINCE=WA KEY_CITY=xx KEY_ORG=HomeVPN KEY_EMAIL=xx@xx.com
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: STR_COPY:variable has no value
you need to specify all of them separately (it's a DOS batch file):
after sourcing the vars.bat file, type
to ensure that it is set.
Code: Select all
set KEY_COUNTRY=
set KEY_PROVINCE=...
Code: Select all
echo %KEY_PROVINCE%
-
- OpenVpn Newbie
- Posts: 3
- Joined: Sun Feb 26, 2012 10:41 pm
Re: STR_COPY:variable has no value
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
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: STR_COPY:variable has no value
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.
etc . A single line SET A=B C=D does not work
Code: Select all
set KEY_COUNTRY=
set KEY_PROVINCE=...