Skip to content

Conversation

@omidshojaee
Copy link
Contributor

@omidshojaee omidshojaee commented Oct 12, 2024

For those who need it, the script asks for how many days the new client should be valid. This defaults to 3650 days. Then it sets the EASYRSA_CERT_EXPIRE variable accordingly.

This script is meant to be simple which means it is for those who are not tech-savvy to handle the complex task of installing and configuring OpenVPN.

However if the user has a large number of clients and all of them are valid for 10 years, it is very hard to keep track of them. This PR helps them to set a reasonable validity period, while the default is the same.

@IllusionVK
Copy link

Hey nice enhancement @omidshojaee !

omidshojaee and others added 2 commits December 9, 2025 19:49
Add DAYS_VALID to auto-install defaults and skip interactive prompt
when the variable is already set.
Copy link
Owner

@angristan angristan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@angristan angristan changed the title Ask for how many days the new client should be valid in days. Defaults to 3650 days (10 years) Allow custom certificate duration when creating clients Dec 9, 2025
@angristan angristan merged commit 625821d into angristan:master Dec 9, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants