TinCanTech wrote: ↑Wed Aug 11, 2021 7:21 pmSo: 3.0.8
upgrade <type>Code: Select all
tct@home:~/easy-rsa/EasyRSA-3.0.8$ ./easyrsa Easy-RSA 3 usage and overview USAGE: easyrsa [options] COMMAND [command-options] A list of commands is shown below. To get detailed usage and help for a command, run: ./easyrsa help COMMAND For a listing of options that can be supplied before the command, use: ./easyrsa help options Here is the list of commands available with a short syntax reminder. Use the 'help' command above to get full usage details. init-pki build-ca [ cmd-opts ] gen-dh gen-req <filename_base> [ cmd-opts ] sign-req <type> <filename_base> build-client-full <filename_base> [ cmd-opts ] build-server-full <filename_base> [ cmd-opts ] revoke <filename_base> [cmd-opts] renew <filename_base> [cmd-opts] build-serverClient-full <filename_base> [ cmd-opts ] gen-crl update-db show-req <filename_base> [ cmd-opts ] show-cert <filename_base> [ cmd-opts ] show-ca [ cmd-opts ] import-req <request_file_path> <short_basename> export-p7 <filename_base> [ cmd-opts ] export-p8 <filename_base> [ cmd-opts ] export-p12 <filename_base> [ cmd-opts ] set-rsa-pass <filename_base> [ cmd-opts ] set-ec-pass <filename_base> [ cmd-opts ] upgrade <type> DIRECTORY STATUS (commands would take effect on these locations) EASYRSA: /home/tct/easy-rsa/EasyRSA-3.0.8 PKI: /home/tct/easy-rsa/EasyRSA-3.0.8/pki
It takes a backup and runs a simulation before making any changes. And if anything goes wrong then it does a roll-back.Code: Select all
tct@home:~/easy-rsa/EasyRSA-3.0.8$ ./easyrsa help upgrade upgrade <type> Upgrade EasyRSA PKI and/or CA. <type> must be one of: pki - Upgrade EasyRSA v2.x PKI to EasyRSA v3.x PKI (includes CA below) ca - Upgrade EasyRSA v3.0.5 CA or older to EasyRSA v3.0.6 CA or later.
This is what happens on my computer.
Code: Select all
EasyRSA Shell
# ./easyrsa upgrade ca
./easyrsa: C:/Program Files/OpenVPN/easy-rsa/pki/vars[1]: @echo: not found
./easyrsa: C:/Program Files/OpenVPN/easy-rsa/pki/vars[2]: rem: not found
./easyrsa: C:/Program Files/OpenVPN/easy-rsa/pki/vars[3]: rem: not found
./easyrsa: C:/Program Files/OpenVPN/easy-rsa/pki/vars[4]: rem: not found
./easyrsa: C:/Program Files/OpenVPN/easy-rsa/pki/vars[6]: rem: not found
./easyrsa: C:/Program Files/OpenVPN/easy-rsa/pki/vars[7]: syntax error: '(' unexpected
Note: using Easy-RSA configuration from: C:/Program Files/OpenVPN/easy-rsa/pki/vars
Easy-RSA error:
echo
./easyrsa[2577]: vars file not found: bad number