openvpn easy-rsa command not found -


im trying install openvpn on centos 6 box im using epel repository install vpn went fine on installation somehow when coming generate certificate part lots of command not found raised when im typing "source ./vars" command

here returned terminal

[root@... easy-rsa]# source ./vars : command not found : command not found : command not found : command not found : command not found : command not found : command not found note: if run ./clean-all, doing rm -rf on /etc/openvpn/easy-rsa/keys : command not found : command not found : command not found : command not found : command not found 

here vars file setting

# easy-rsa parameter settings  # note: if installed rpm, # don't edit file in place in # /usr/share/openvpn/easy-rsa -- # instead, should copy whole # easy-rsa directory location # (such /etc/openvpn) # edits not wiped out future # openvpn package upgrade.  # variable should point # top level of easy-rsa # tree. export easy_rsa="`pwd`"  # # variable should point # requested executables # export openssl="openssl" export pkcs11tool="pkcs11-tool" export grep="grep"   # variable should point # openssl.cnf file included # easy-rsa. export key_config=/etc/openvpn/easy-rsa/openssl.cnf  # edit variable point # soon-to-be-created key # directory. # # warning: clean-all # rm -rf on directory # make sure define # correctly! export key_dir="$easy_rsa/keys"  # issue rm -rf warning echo note: if run ./clean-all, doing rm -rf on $key_dir  # pkcs11 fixes export pkcs11_module_path="dummy" export pkcs11_pin="dummy"  # increase 2048 if # paranoid.  slow # down tls negotiation performance # one-time dh parms # generation process. export key_size=1024  # in how many days should root ca key expire? export ca_expire=3650  # in how many days should certificates expire? export key_expire=3650  # these default values fields # placed in certificate. # don't leave of these fields blank. export key_country="us" export key_province="ca" export key_city="sanfrancisco" export key_org="fort-funston" export key_email="me@myhost.mydomain" export key_email=mail@host.domain export key_cn=changeme export key_name=changeme export key_ou=changeme export pkcs11_module_path=changeme export pkcs11_pin=1234 

any appreciated thanks

if notice there 7 command not found statements before echo. there 7 "empty" lines before echo. appears key dir variable expanding in echo statement. after echo statement there 5 "empty" lines , 5 more command not found errors. makes me think command not found statements result of "empty" lines.

obviously if line empty shouldn't cause sort of error. how did "vars" file there? did copy/paste , invisible characters got copied in process? or perhaps edited on device used different type of carriage returns?

you should use editor such vim on see hidden characters. try use program tofrodos convert carriage returns. when source file executing script , variables exported become part of our shell sourced in. scripts conform unix line endings.


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -