LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   OpenVPN: trouble sourcing vars file (https://www.linuxquestions.org/questions/linux-software-2/openvpn-trouble-sourcing-vars-file-671625/)

blckspder 09-22-2008 01:39 PM

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.

Matir 09-22-2008 02:22 PM

On my vars file, I have:
Code:

export KEY_CONFIG=`$EASY_RSA/whichopensslcnf $EASY_RSA`

blckspder 09-22-2008 02:33 PM

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 



All times are GMT -5. The time now is 04:17 AM.