vars.conf 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # easy-rsa parameter settings
  2. # NOTE: If you installed from an RPM,
  3. # don't edit this file in place in
  4. # /usr/share/openvpn/easy-rsa --
  5. # instead, you should copy the whole
  6. # easy-rsa directory to another location
  7. # (such as /etc/openvpn) so that your
  8. # edits will not be wiped out by a future
  9. # OpenVPN package upgrade.
  10. # This variable should point to
  11. # the top level of the easy-rsa
  12. # tree.
  13. export EASY_RSA="`pwd`"
  14. #
  15. # This variable should point to
  16. # the requested executables
  17. #
  18. export OPENSSL="openssl"
  19. export PKCS11TOOL="pkcs11-tool"
  20. export GREP="grep"
  21. # This variable should point to
  22. # the openssl.cnf file included
  23. # with easy-rsa.
  24. export KEY_CONFIG=`$EASY_RSA/whichopensslcnf $EASY_RSA`
  25. # Edit this variable to point to
  26. # your soon-to-be-created key
  27. # directory.
  28. #
  29. # WARNING: clean-all will do
  30. # a rm -rf on this directory
  31. # so make sure you define
  32. # it correctly!
  33. export KEY_DIR="$EASY_RSA/keys"
  34. # Issue rm -rf warning
  35. echo NOTE: If you run ./clean-all, I will be doing a rm -rf on $KEY_DIR
  36. # PKCS11 fixes
  37. export PKCS11_MODULE_PATH="dummy"
  38. export PKCS11_PIN="dummy"
  39. # Increase this to 2048 if you
  40. # are paranoid. This will slow
  41. # down TLS negotiation performance
  42. # as well as the one-time DH parms
  43. # generation process.
  44. export KEY_SIZE=2048
  45. # In how many days should the root CA key expire?
  46. export CA_EXPIRE=3650
  47. # In how many days should certificates expire?
  48. export KEY_EXPIRE=3650
  49. # These are the default values for fields
  50. # which will be placed in the certificate.
  51. # Don't leave any of these fields blank.
  52. export KEY_COUNTRY="ID"
  53. export KEY_PROVINCE="ID"
  54. export KEY_CITY="Indonesia"
  55. export KEY_ORG="lostserver.xyz"
  56. export KEY_EMAIL="admin@lostserver.xyz"
  57. export KEY_OU="lostserver"
  58. # X509 Subject Field
  59. export KEY_NAME="server"
  60. # PKCS11 Smart Card
  61. # export PKCS11_MODULE_PATH="/usr/lib/changeme.so"
  62. # export PKCS11_PIN=1234
  63. # If you'd like to sign all keys with the same Common Name, uncomment the KEY_CN export below
  64. # You will also need to make sure your OpenVPN server config has the duplicate-cn option set
  65. # export KEY_CN="CommonName"