Page 1 of 1

Certificate Creation Errors: build-ca

Posted: Wed Feb 02, 2011 4:07 am
by drezabek94
I was editing vars.bat when I think that I broke my windows install somehow :\ It was working fine, but something I did to vars.bat (sorry I don't have what it was before) corrupted something...
After I run vars.bat and clean-all.bat, it changes the directory from "C:\Program Files (x86)\OpenVPN\easy-rsa" to "C:\Program Files\OpenVPN\easy-rsa". It didn't do that before. Here is a log of the CMD window (ran as admin) after a fresh restart of windows and install of OpenVPN:

Code: Select all

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Windows\system32>cd C:\Program Files (x86)\OpenVPN\easy-rsa

C:\Program Files (x86)\OpenVPN\easy-rsa>init-config

C:\Program Files (x86)\OpenVPN\easy-rsa>copy vars.bat.sample vars.bat
        1 file(s) copied.

C:\Program Files (x86)\OpenVPN\easy-rsa>copy openssl.cnf.sample openssl.cnf
        1 file(s) copied.

C:\Program Files (x86)\OpenVPN\easy-rsa>vars

C:\Program Files (x86)\OpenVPN\easy-rsa>clean-all
The system cannot find the file specified.
The system cannot find the file specified.

C:\Program Files\OpenVPN\easy-rsa>cd C:\Program Files (x86)\OpenVPN\easy-rsa

C:\Program Files (x86)\OpenVPN\easy-rsa>vars

C:\Program Files (x86)\OpenVPN\easy-rsa>build-ca
error on line -1 of openssl.cnf
4440:error:02001002:system library:fopen:No such file or directory:.\crypto\bio\
bss_file.c:126:fopen('openssl.cnf','rb')
4440:error:2006D080:BIO routines:BIO_new_file:no such file:.\crypto\bio\bss_file
.c:129:
4440:error:0E078072:configuration file routines:DEF_LOAD:no such file:.\crypto\c
onf\conf_def.c:197:

C:\Program Files\OpenVPN\easy-rsa>
I am on Windows 7 64-bit. Can anybody help?

Re: Certificate Creation Errors: build-ca

Posted: Wed Feb 02, 2011 8:06 am
by maikcat
hi there,

if you check vars.bat you see:

>set HOME=%ProgramFiles%\OpenVPN\easy-rsa

check that the variable %ProgramFiles% points to the right location

you could easily override it ,by setting it your self inside vars.bat

cheers,

michael

Re: Certificate Creation Errors: build-ca

Posted: Wed Feb 02, 2011 11:05 pm
by drezabek94
EDIT:
Looks like that was the problem... does anyone know how to change the %ProgramFiles% part back to the x86 dir? I don't understand how that happened in the first place.

so maikcat thanks for the help! I must have overlooked that.