Certificate Creation Errors: build-ca

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
drezabek94
OpenVpn Newbie
Posts: 2
Joined: Wed Feb 02, 2011 3:46 am

Certificate Creation Errors: build-ca

Post by drezabek94 » Wed Feb 02, 2011 4:07 am

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?

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Certificate Creation Errors: build-ca

Post by maikcat » Wed Feb 02, 2011 8:06 am

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
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

drezabek94
OpenVpn Newbie
Posts: 2
Joined: Wed Feb 02, 2011 3:46 am

Re: Certificate Creation Errors: build-ca

Post by drezabek94 » Wed Feb 02, 2011 11:05 pm

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.

Post Reply