Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add script to renew VPN certificates #179

Closed
wants to merge 1 commit into from

Conversation

Chrissi2812
Copy link

It's based on the steps from this forum post: https://forums.balena.io/t/psa-open-balena-certificates-expiration-management/350177/2

The script backs up the current config, renews the certificates using the old CA, and updates the server configuration files accordingly.

# renews VPN Certificate
./scripts/renew-vpn-certs

# Restart the server with new config
./scripts/compose up -d --force-recreate

The script backs up the current certificate configurations, generates new certificates, and updates the server configuration files accordingly.

Change-Type: minor
@ab77
Copy link
Contributor

ab77 commented May 28, 2024

@Chrissi2812 Hello, (and a very late thank you for you contribution), we've updated the build/deploy scaffold for openBalena today, which includes a fairly comprehensive redesign of PKI management. We are now using our own [cert-manager(https://github.com/balena-io/cert-manager) and ca-private wrapper projects to facilitate this. These two projects use Cloudflare PKI toolkit and certbot to deliver both public and private PKI assets to openBalena.

Right now, self-signed PKI (incl. VPN assets) isn't automatically renewed when it expires. One renewal option is to simply delete the volume content in /pki as well as /certs and restart the composition. The other option would be to increment CA generations and restart.

Please feel free to reopen your PR, rebase on master and contribute anything you feel that is missing or incorrect.

@ab77 ab77 closed this May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants