Changes

1,374 bytes removed ,  12:48, 17 September 2018
no edit summary
Line 20: Line 20:  
{{Template:installing openvpn software}}
 
{{Template:installing openvpn software}}
 
{{Template:preparing easyrsa}}
 
{{Template:preparing easyrsa}}
 
+
{{Template:generating certificates and keys}}
==Step 3: generating certificates and keys==
  −
 
  −
<ul>
  −
  <li>Now we can start generating the certificates and keys. Begin with the '''certificate authority''' ('''CA''') - the root certificate file that will be used to sign other certificates and keys:
  −
    <ul>
  −
      <pre>build-ca</pre>
  −
    </ul>
  −
'''NOTE''': you can press the "Enter" key when prompted to enter the values set in the ''vars.bat'' file earlier. Doing this will set the values to the default specified in ''vars.bat''. However, you should type in a meaningful '''Common Name'''.
  −
  </li>
  −
 
  −
  <li>Next, build the '''server''' certificate and key:
  −
    <ul>
  −
      <pre>build-key-server server</pre>
  −
'''NOTE''': once again, don't forget to specify a different Common Name (use the name "server" for easier management purposes). When prompted the sign and commit the certificate, type '''y''' and press "Enter".
  −
    </ul>
  −
  </li>
  −
 
  −
  <li>Next, build certificates and keys for the '''clients''':
  −
    <ul>
  −
      <pre>build-key Client1</pre>
  −
    </ul>
  −
'''TIP''': use the same Common Name as the certificate name (Client1 in this example). This will help you differentiate different clients easier. Pick meaningful names like "toms_PC", "company_maintenance", etc. Repeat this step as many times as you need, depending on the client quantity.
  −
  </li>
  −
 
  −
  <li>Lastly, generate '''Diffie Hellman parameters''':
  −
    <ul>
  −
      <pre>build-dh</pre>
  −
    </ul>
  −
  </li>
  −
</ul>
      
==Step 4: OpenVPN server configuration==
 
==Step 4: OpenVPN server configuration==

Navigation menu