LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-22-2008, 01:39 PM   #1
blckspder
Member
 
Registered: Feb 2005
Posts: 37

Rep: Reputation: 15
OpenVPN: trouble sourcing vars file


Hello,

I am trying to install openvpn on fedora 8. I am following the how to on OpenVpn's website but I am running into a problem when I try to source the vars file to build the master certificate. Here is the error I get:

PHP Code:
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 10HOMEcommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 11RANDFILEcommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 15oid_sectioncommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 34default_cacommand not found
dir
cannot access =: No such file or directory
dir
cannot access \:\:KEY_DIRNo such file or directory
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 40certscommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 41crl_dircommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 42databasecommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 43new_certs_dircommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 45certificatecommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 46serialcommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 47crlcommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 48private_keycommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 49RANDFILEcommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 51x509_extensionscommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 57default_dayscommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 5830command not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 59default_mdcommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 60preservecommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 65policycommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 69countryNamecommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 70stateOrProvinceNamecommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 71organizationNamecommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 72organizationalUnitNamecommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 73commonNamecommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 74emailAddresscommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 80countryNamecommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 81stateOrProvinceNamecommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 82localityNamecommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 83organizationNamecommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 84organizationalUnitNamecommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 85commonNamecommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 86emailAddresscommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 90default_bitscommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 91default_keyfilecommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 92distinguished_namecommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 93attributescommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 94x509_extensionscommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 108string_maskcommand not found
/etc/openvpn/easy-rsa/2.0/openssl.cnfline 113syntax error near unexpected token `('
/etc/openvpn/easy-rsa/2.0/openssl.cnf: line 113: 
`countryName                   Country Name (2 letter code)'
NOTE: If you run ./clean-all, I will be doing a rm -rf on /etc/openvpn/easy-rsa/keys 
Here is my vars file, I removed some of the sensitive info at the bottom:

PHP Code:
# easy-rsa parameter settings

# NOTE: If you installed from an RPM,
# don't edit this file in place in
# /usr/share/openvpn/easy-rsa --
# instead, you should copy the whole
# easy-rsa directory to another location
# (such as /etc/openvpn) so that your
# edits will not be wiped out by a future
# OpenVPN package upgrade.

# This variable should point to
# the top level of the easy-rsa
# tree.
export EASY_RSA="/etc/openvpn/easy-rsa"

#
# This variable should point to
# the requested executables
#
export OPENSSL="openssl"
export PKCS11TOOL="pkcs11-tool"
export GREP="grep"


# This variable should point to
# the openssl.cnf file included
# with easy-rsa.
export KEY_CONFIG=`$EASY_RSA/2.0/openssl.cnf $EASY_RSA`

# Edit this variable to point to
# your soon-to-be-created key
# directory.
#
# WARNING: clean-all will do
# a rm -rf on this directory
# so make sure you define
# it correctly!
export KEY_DIR="$EASY_RSA/keys"

# Issue rm -rf warning
echo NOTE: If you run ./clean-allI will be doing a rm -rf on $KEY_DIR

# Increase this to 2048 if you
# are paranoid.  This will slow
# down TLS negotiation performance
# as well as the one-time DH parms
# generation process.
export KEY_SIZE=1024

# In how many days should the root CA key expire?
export CA_EXPIRE=3650

# In how many days should certificates expire?
export KEY_EXPIRE=3650

# These are the default values for fields
# which will be placed in the certificate.
# Don't leave any of these fields blank.
export KEY_COUNTRY="US"
export KEY_PROVINCE="NY"
export KEY_CITY="Milton"
export KEY_ORG="XXXX"
export KEY_EMAIL="XXXX" 
If anyone can help I would greatly appreciate it. Thanks.
 
Old 09-22-2008, 02:22 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
On my vars file, I have:
Code:
export KEY_CONFIG=`$EASY_RSA/whichopensslcnf $EASY_RSA`
 
Old 09-22-2008, 02:33 PM   #3
blckspder
Member
 
Registered: Feb 2005
Posts: 37

Original Poster
Rep: Reputation: 15
Thanks for the reply,

I made the change to what you had and now I get this error:

PHP Code:
-bash: /etc/openvpn/easy-rsa/whichopensslcnfNo such file or directory 
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenVPN client has not default gateway when connect to OpenVPN server sailershen Linux - Security 3 03-04-2010 02:20 AM
sourcing a file bdiddy84 Linux - Newbie 1 04-17-2007 09:07 PM
sourcing a python config file? shanenin Programming 8 08-10-2005 02:19 PM
Error when sourcing file to finish program installation serendipitysdc Linux - Software 1 07-18-2004 10:16 PM
Python - Set vars and loop over lines in file jnoller Programming 6 02-07-2004 10:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration