vars 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. # Easy-RSA 3 parameter settings
  2. # NOTE: If you installed Easy-RSA from your distro's package manager, don't edit
  3. # this file in place -- instead, you should copy the entire easy-rsa directory
  4. # to another location so future upgrades don't wipe out your changes.
  5. # HOW TO USE THIS FILE
  6. #
  7. # vars.example contains built-in examples to Easy-RSA settings. You MUST name
  8. # this file 'vars' if you want it to be used as a configuration file. If you do
  9. # not, it WILL NOT be automatically read when you call easyrsa commands.
  10. #
  11. # It is not necessary to use this config file unless you wish to change
  12. # operational defaults. These defaults should be fine for many uses without the
  13. # need to copy and edit the 'vars' file.
  14. #
  15. # All of the editable settings are shown commented and start with the command
  16. # 'set_var' -- this means any set_var command that is uncommented has been
  17. # modified by the user. If you're happy with a default, there is no need to
  18. # define the value to its default.
  19. # NOTES FOR WINDOWS USERS
  20. #
  21. # Paths for Windows *MUST* use forward slashes, or optionally double-escaped
  22. # backslashes (single forward slashes are recommended.) This means your path to
  23. # the openssl binary might look like this:
  24. # "C:/Program Files/OpenSSL-Win32/bin/openssl.exe"
  25. # A little housekeeping: DON'T EDIT THIS SECTION
  26. #
  27. # Easy-RSA 3.x doesn't source into the environment directly.
  28. # Complain if a user tries to do this:
  29. if [ -z "$EASYRSA_CALLER" ]; then
  30. echo "You appear to be sourcing an Easy-RSA 'vars' file." >&2
  31. echo "This is no longer necessary and is disallowed. See the section called" >&2
  32. echo "'How to use this file' near the top comments for more details." >&2
  33. return 1
  34. fi
  35. # DO YOUR EDITS BELOW THIS POINT
  36. # This variable is used as the base location of configuration files needed by
  37. # easyrsa. More specific variables for specific files (e.g., EASYRSA_SSL_CONF)
  38. # may override this default.
  39. #
  40. # The default value of this variable is the location of the easyrsa script
  41. # itself, which is also where the configuration files are located in the
  42. # easy-rsa tree.
  43. #set_var EASYRSA "${0%/*}"
  44. # If your OpenSSL command is not in the system PATH, you will need to define the
  45. # path to it here. Normally this means a full path to the executable, otherwise
  46. # you could have left it undefined here and the shown default would be used.
  47. #
  48. # Windows users, remember to use paths with forward-slashes (or escaped
  49. # back-slashes.) Windows users should declare the full path to the openssl
  50. # binary here if it is not in their system PATH.
  51. #set_var EASYRSA_OPENSSL "openssl"
  52. #
  53. # This sample is in Windows syntax -- edit it for your path if not using PATH:
  54. #set_var EASYRSA_OPENSSL "C:/Program Files/OpenSSL-Win32/bin/openssl.exe"
  55. # Edit this variable to point to your soon-to-be-created key directory. By
  56. # default, this will be "$PWD/pki" (i.e. the "pki" subdirectory of the
  57. # directory you are currently in).
  58. #
  59. # WARNING: init-pki will do a rm -rf on this directory so make sure you define
  60. # it correctly! (Interactive mode will prompt before acting.)
  61. #set_var EASYRSA_PKI "$PWD/pki"
  62. # Define directory for temporary subdirectories.
  63. #set_var EASYRSA_TEMP_DIR "$EASYRSA_PKI"
  64. # Define X509 DN mode.
  65. # This is used to adjust what elements are included in the Subject field as the DN
  66. # (this is the "Distinguished Name.")
  67. # Note that in cn_only mode the Organizational fields further below aren't used.
  68. #
  69. # Choices are:
  70. # cn_only - use just a CN value
  71. # org - use the "traditional" Country/Province/City/Org/OU/email/CN format
  72. #set_var EASYRSA_DN "cn_only"
  73. # Organizational fields (used with 'org' mode and ignored in 'cn_only' mode.)
  74. # These are the default values for fields which will be placed in the
  75. # certificate. Don't leave any of these fields blank, although interactively
  76. # you may omit any specific field by typing the "." symbol (not valid for
  77. # email.)
  78. set_var EASYRSA_REQ_COUNTRY "MY"
  79. set_var EASYRSA_REQ_PROVINCE "Selangor"
  80. set_var EASYRSA_REQ_CITY "Gombak"
  81. set_var EASYRSA_REQ_ORG "Copyleft Certificatevpnku"
  82. set_var EASYRSA_REQ_EMAIL "irwanmohi@gmail.com"
  83. set_var EASYRSA_REQ_OU "vpnku"
  84. # Choose a size in bits for your keypairs. The recommended value is 2048. Using
  85. # 2048-bit keys is considered more than sufficient for many years into the
  86. # future. Larger keysizes will slow down TLS negotiation and make key/DH param
  87. # generation take much longer. Values up to 4096 should be accepted by most
  88. # software. Only used when the crypto alg is rsa (see below.)
  89. set_var EASYRSA_KEY_SIZE 2048
  90. # The default crypto mode is rsa; ec can enable elliptic curve support.
  91. # Note that not all software supports ECC, so use care when enabling it.
  92. # Choices for crypto alg are: (each in lower-case)
  93. # * rsa
  94. # * ec
  95. # * ed
  96. #set_var EASYRSA_ALGO rsa
  97. # Define the named curve, used in ec & ed modes:
  98. #set_var EASYRSA_CURVE secp384r1
  99. # In how many days should the root CA key expire?
  100. set_var EASYRSA_CA_EXPIRE 3650
  101. # In how many days should certificates expire?
  102. set_var EASYRSA_CERT_EXPIRE 825
  103. # How many days until the next CRL publish date? Note that the CRL can still be
  104. # parsed after this timeframe passes. It is only used for an expected next
  105. # publication date.
  106. set_var EASYRSA_CRL_DAYS 180
  107. # How many days before its expiration date a certificate is allowed to be
  108. # renewed?
  109. set_var EASYRSA_CERT_RENEW 30
  110. # Random serial numbers by default, set to no for the old incremental serial numbers
  111. #
  112. #set_var EASYRSA_RAND_SN "yes"
  113. # Support deprecated "Netscape" extensions? (choices "yes" or "no".) The default
  114. # is "no" to discourage use of deprecated extensions. If you require this
  115. # feature to use with --ns-cert-type, set this to "yes" here. This support
  116. # should be replaced with the more modern --remote-cert-tls feature. If you do
  117. # not use --ns-cert-type in your configs, it is safe (and recommended) to leave
  118. # this defined to "no". When set to "yes", server-signed certs get the
  119. # nsCertType=server attribute, and also get any NS_COMMENT defined below in the
  120. # nsComment field.
  121. #set_var EASYRSA_NS_SUPPORT "no"
  122. # When NS_SUPPORT is set to "yes", this field is added as the nsComment field.
  123. # Set this blank to omit it. With NS_SUPPORT set to "no" this field is ignored.
  124. set_var EASYRSA_NS_COMMENT "Easy-RSA Generated Certificate"
  125. # A temp file used to stage cert extensions during signing. The default should
  126. # be fine for most users; however, some users might want an alternative under a
  127. # RAM-based FS, such as /dev/shm or /tmp on some systems.
  128. #set_var EASYRSA_TEMP_FILE "$EASYRSA_PKI/extensions.temp"
  129. # !!
  130. # NOTE: ADVANCED OPTIONS BELOW THIS POINT
  131. # PLAY WITH THEM AT YOUR OWN RISK
  132. # !!
  133. # Broken shell command aliases: If you have a largely broken shell that is
  134. # missing any of these POSIX-required commands used by Easy-RSA, you will need
  135. # to define an alias to the proper path for the command. The symptom will be
  136. # some form of a 'command not found' error from your shell. This means your
  137. # shell is BROKEN, but you can hack around it here if you really need. These
  138. # shown values are not defaults: it is up to you to know what you're doing if
  139. # you touch these.
  140. #
  141. #alias awk="/alt/bin/awk"
  142. #alias cat="/alt/bin/cat"
  143. # X509 extensions directory:
  144. # If you want to customize the X509 extensions used, set the directory to look
  145. # for extensions here. Each cert type you sign must have a matching filename,
  146. # and an optional file named 'COMMON' is included first when present. Note that
  147. # when undefined here, default behaviour is to look in $EASYRSA_PKI first, then
  148. # fallback to $EASYRSA for the 'x509-types' dir. You may override this
  149. # detection with an explicit dir here.
  150. #
  151. #set_var EASYRSA_EXT_DIR "$EASYRSA/x509-types"
  152. # If you want to generate KDC certificates, you need to set the realm here.
  153. #set_var EASYRSA_KDC_REALM "CHANGEME.EXAMPLE.COM"
  154. # OpenSSL config file:
  155. # If you need to use a specific openssl config file, you can reference it here.
  156. # Normally this file is auto-detected from a file named openssl-easyrsa.cnf from the
  157. # EASYRSA_PKI or EASYRSA dir (in that order.) NOTE that this file is Easy-RSA
  158. # specific and you cannot just use a standard config file, so this is an
  159. # advanced feature.
  160. #set_var EASYRSA_SSL_CONF "$EASYRSA/openssl-easyrsa.cnf"
  161. # Default CN:
  162. # This is best left alone. Interactively you will set this manually, and BATCH
  163. # callers are expected to set this themselves.
  164. set_var EASYRSA_REQ_CN "vpnku"
  165. # Cryptographic digest to use.
  166. # Do not change this default unless you understand the security implications.
  167. # Valid choices include: md5, sha1, sha256, sha224, sha384, sha512
  168. #set_var EASYRSA_DIGEST "sha256"
  169. # Batch mode. Leave this disabled unless you intend to call Easy-RSA explicitly
  170. # in batch mode without any user input, confirmation on dangerous operations,
  171. # or most output. Setting this to any non-blank string enables batch mode.
  172. #set_var EASYRSA_BATCH ""