Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • N neutrinet_ynh
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • NeutrinetNeutrinet
  • neutrinet_ynh
  • Merge requests
  • !30

Hotfix renew-cert CN certificates

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged HgO requested to merge hotfix-renew-cert-cn-certificates into stable Apr 21, 2020
  • Overview 1
  • Commits 6
  • Pipelines 0
  • Changes 4

Closes #20 (closed)

Testing

Upgrade

sudo yunohost app upgrade neutrinet -u https://git.domainepublic.net/Neutrinet/neutrinet_ynh/tree/hotfix-renew-cert-cn-certificates --debug

Install

sudo yunohost app install https://git.domainepublic.net/Neutrinet/neutrinet_ynh/tree/hotfix-renew-cert-cn-certificates --debug

Tests

These tests must be run for both upgrade and install.

First run:

/opt/neutrinet/renew_cert/renew_cert_cron.sh

This should NOT renew the certificate. However you should get some output saying how many days remain before renewal.

Then, to force the renewal:

/opt/neutrinet/renew_cert/renew_cert_cron.sh -f

(Optionally) Check that the quiet mode is working:

/opt/neutrinet/renew_cert/renew_cert_cron.sh -q -f

After each run of the script, check that you have an ip under tun0 interface:

ip a show dev tun0

In particular, you should have an IPv4 address.

Check also the certificate's creation date:

openssl x509 -in /etc/openvpn/keys/user.crt -noout -startdate
Edited May 03, 2020 by HgO
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: hotfix-renew-cert-cn-certificates