Changes

1,621 bytes removed ,  12:47, 17 September 2018
no edit summary
Line 19: Line 19:     
{{Template:installing openvpn software}}
 
{{Template:installing openvpn software}}
==Step 2: preparing EasyRSA==
+
{{Template:preparing easyrsa}}
   −
<ul>
  −
  <li>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. <br> 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''':
  −
    <ul>[[File:How to generate tls certificates windows part 1 v3.png]]</ul>
  −
  </li>
  −
  −
  <li>Change the current directory to the EasyRSA folder. To do so, execute this command:
  −
    <ul>
  −
      <pre>cd "C:\Program Files\OpenVPN\easy-rsa"</pre>
  −
    </ul>
  −
  </li>
  −
  −
  <li>Initialize the OpenVPN configuration with the following command:
  −
    <ul>
  −
      <pre> init-config</pre>
  −
    </ul>
  −
  </li>
  −
  −
  <li>Open the '''''vars.bat''''' file with the Notepad text editor:
  −
    <ul>
  −
      <pre>notepad vars.bat</pre>
  −
    </ul>
  −
  </li>
  −
  −
  <li>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:
  −
    <ul>
  −
      <pre>set KEY_COUNTRY=US
  −
set KEY_PROVINCE=CA
  −
set KEY_CITY=SanFrancisco
  −
set KEY_ORG=OpenVPN
  −  −
    </ul>
  −
  </li>
  −
  −
  <li>You can also set the key size for the Diffie Hellman parameters:
  −
    <ul>
  −
      <pre>set DH_KEY_SIZE=2048</pre>
  −
    </ul>
  −
  </li>
  −
  −
  <li>Once you're done, save the file and close the editor</li>
  −
  −
  <li>Run the following commands:
  −
    <ul>
  −
      <pre>vars</pre>
  −
      <pre>clean-all</pre>
  −
    </ul>
  −
  </li>
  −
</ul>
   
==Step 3: generating certificates and keys==
 
==Step 3: generating certificates and keys==