Template:Preparing easyrsa: Difference between revisions

From Teltonika Networks Wiki
m (Protected "Template:Preparing easyrsa" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
m (Removed protection from "Template:Preparing easyrsa")
(No difference)

Revision as of 11:48, 17 September 2018

Step 2: preparing EasyRSA

  • Now we can start preparing to generate certificates and keys. For this we'll be using the EasyRSA application that was installed along with OpenVPN.
    EasyRSA commands have to be executed via the Windows Command Prompt. It can be opened by typing cmd in the Windows search bar (Windows button + S). When you launch it, make sure you run it as administrator:
  • Change the current directory to the EasyRSA folder. To do so, execute this command:
      cd "C:\Program Files\OpenVPN\easy-rsa"
  • Initialize the OpenVPN configuration with the following command:
       init-config
  • Open the vars.bat file with the Notepad text editor:
      notepad vars.bat
  • This is the template file for generating certificates, i.e., the information stored here will be offered as default values during certificate generation. Locate and edit the following lines in accordance with your needs:
      set KEY_COUNTRY=US
      set KEY_PROVINCE=CA
      set KEY_CITY=SanFrancisco
      set KEY_ORG=OpenVPN
      set [email protected]
  • You can also set the key size for the Diffie Hellman parameters:
      set DH_KEY_SIZE=2048
  • Once you're done, save the file and close the editor
  • Run the following commands:
      vars
      clean-all