networking:openvpn
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| networking:openvpn [2024/08/14 17:25] – oscar | networking:openvpn [2024/08/14 17:45] (current) – [7. Deploy Certificates & Keys] oscar | ||
|---|---|---|---|
| Line 78: | Line 78: | ||
| | | ||
| | | ||
| - | ===== Copy certificates | + | ===== 7. Deploy Certificates |
| + | With that, all the certificate and key files needed by your server have been generated. You’re ready to deploy the corresponding certificates and keys to both OpenVPN Server and Client systems. | ||
| - | When the command finishes, copy the two new files to your / | + | Now we will find our newly-generated keys and certificates in the keys subdirectory. Here is an explanation of the relevant |
| + | ^Filename ^Needed By ^Purpose ^Secret^ | ||
| + | |ca.crt |server + all clients |Root CA certificate |NO| | ||
| + | |ca.key |key signing machine only |Root CA key |YES| | ||
| + | |dh2048.pem |server only |Diffie Hellman parameters |NO| | ||
| + | |MyServerName.crt |server only |Server Certificate |NO| | ||
| + | |MyServerName.key |server only |Server Key |YES| | ||
| + | |MyClientName.crt |client1 only |Client1 Certificate |NO| | ||
| + | |MyClientName.key |client1 only |Client1 Key |YES| | ||
| - | sudo cp ~/easy-rsa/ta.key /etc/openvpn/ | + | === Server Deployment === |
| - | sudo cp ~/easy-rsa/pki/dh.pem /etc/openvpn/ | + | Insert the following options in the openvpn configuration file: |
| + | vi / | ||
| + | ---------------------- | ||
| + | option ca '/etc/easy-rsa/keys/ca.crt' | ||
| + | option | ||
| + | | ||
| + | option dh '/etc/easy-rsa/keys/ | ||
| - | With that, all the certificate and key files needed by your server have been generated. You’re ready to create the corresponding certificates and keys that your client machine will use to access your OpenVPN server. | ||
| - | ===== Key Files ===== | + | === Client Deployment |
| - | Now we will find our newly-generated keys and certificates in the keys subdirectory. Here is an explanation | + | Insert the various |
| - | ^Filename ^Needed By ^Purpose ^Secret | + | |
| - | |ca.crt |server + all clients |Root CA certificate |NO | + | - **ca.cert** --> insert contents --> between the <ca></ |
| - | |ca.key | + | - **MyClientName.key** --> insert contents --> between the <key></key>. Including the " |
| - | |dh{n}.pem |server only |Diffie Hellman parameters |NO | + | - **MyClientName.crt** --> insert contents --> between the < |
| - | |server.crt |server only |Server Certificate |NO | + | - **ta.key** --> insert contents --> between the < |
| - | |server.key |server only |Server Key |YES | + | |
| - | |client1.crt |client1 only |Client1 Certificate |NO | + | |
| - | |client1.key |client1 only |Client1 Key |YES | + | |
| ===== Links ===== | ===== Links ===== | ||
networking/openvpn.1723656352.txt.gz · Last modified: by oscar
