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.cnf: line 10: HOME: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 11: RANDFILE: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 15: oid_section: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 34: default_ca: command not found dir: cannot access =: No such file or directory dir: cannot access \:\:KEY_DIR: No such file or directory /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 40: certs: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 41: crl_dir: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 42: database: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 43: new_certs_dir: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 45: certificate: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 46: serial: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 47: crl: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 48: private_key: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 49: RANDFILE: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 51: x509_extensions: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 57: default_days: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 58: 30: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 59: default_md: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 60: preserve: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 65: policy: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 69: countryName: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 70: stateOrProvinceName: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 71: organizationName: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 72: organizationalUnitName: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 73: commonName: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 74: emailAddress: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 80: countryName: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 81: stateOrProvinceName: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 82: localityName: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 83: organizationName: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 84: organizationalUnitName: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 85: commonName: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 86: emailAddress: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 90: default_bits: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 91: default_keyfile: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 92: distinguished_name: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 93: attributes: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 94: x509_extensions: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 108: string_mask: command not found /etc/openvpn/easy-rsa/2.0/openssl.cnf: line 113: syntax 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-all, I 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.
|