en:vpn:renew-cert
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:vpn:renew-cert [2020/12/05 18:07] – hgo | en:vpn:renew-cert [2024/06/19 08:33] (current) – [1. Neutrinet app] hgo | ||
---|---|---|---|
Line 15: | Line 15: | ||
There are four methods to renew the certificate. | There are four methods to renew the certificate. | ||
- | |||
## 1. Neutrinet app | ## 1. Neutrinet app | ||
- | The [[en:cube:apps-neutrinet|Neutrinet app]] takes care of checking every night whether certificates must be renewed. | + | The [[https://apps.yunohost.org/ |
### Install | ### Install | ||
Line 31: | Line 30: | ||
To upgrade this app: | To upgrade this app: | ||
```sh | ```sh | ||
- | yunohost tools update | + | yunohost tools update apps |
- | yunohost | + | yunohost |
``` | ``` | ||
Line 39: | Line 38: | ||
If the Neutrinet app is already installed, you can force the certificates verification: | If the Neutrinet app is already installed, you can force the certificates verification: | ||
```sh | ```sh | ||
- | cd / | + | / |
- | ./renew_cert_cron.sh -v | + | |
``` | ``` | ||
Line 79: | Line 77: | ||
Normaly, a subfolder named `certs_YYYY-MM-DD_HH: | Normaly, a subfolder named `certs_YYYY-MM-DD_HH: | ||
- | The files that we need are `client.crt` | + | The files that we need are `client.crt`, `client.key`, and `ca.crt`, i.e. the public and private key of the client certificate, |
These files must replace the files in `/ | These files must replace the files in `/ | ||
Line 88: | Line 86: | ||
sudo mv / | sudo mv / | ||
sudo mv / | sudo mv / | ||
+ | sudo mv / | ||
sudo mv client.crt / | sudo mv client.crt / | ||
sudo mv client.key / | sudo mv client.key / | ||
+ | sudo mv ca.crt / | ||
``` | ``` | ||
Line 96: | Line 96: | ||
**Remark**: Ideally, make sure to be connected on the same local network as your cube, i.e. through its local address (192.168.1.x in most cases). | **Remark**: Ideally, make sure to be connected on the same local network as your cube, i.e. through its local address (192.168.1.x in most cases). | ||
```sh | ```sh | ||
- | sudo systemctl restart | + | sudo systemctl restart |
``` | ``` | ||
- | To check that you are connected to the VPN, you can run the following command: | + | You can check that everything went well by looking at the logs: |
- | ```sh | + | ``` |
- | ip addr | + | tail / |
``` | ``` | ||
- | |||
- | Normaly, the `tun0` interface should appear in the list. | ||
## 4. From user.neutrinet.be | ## 4. From user.neutrinet.be | ||
Line 117: | Line 115: | ||
Create a certificate signing request (CSR) for this key: | Create a certificate signing request (CSR) for this key: | ||
```sh | ```sh | ||
- | openssl req -new -newkey rsa:4096 -nodes -keyout user.key | + | openssl req -out client.csr |
``` | ``` | ||
Line 123: | Line 121: | ||
Most important is the `Cname`, that is the name which will be used by Neutrinet to know to whom belongs the certificate. | Most important is the `Cname`, that is the name which will be used by Neutrinet to know to whom belongs the certificate. | ||
- | **Remark**: It is recommanded | + | **Remark**: It is recommended |
This command create a file named `client.csr`, | This command create a file named `client.csr`, |
en/vpn/renew-cert.1607188048.txt.gz · Last modified: 2020/12/05 18:07 by hgo