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

revoke: Make check for conflicting files less intrusive #1272

Merged

Conversation

TinCanTech
Copy link
Collaborator

Ref: commit 38bf2d8

In order to avoid accidentally revoking an issued certificate, when an expired or renewed certificate is intended, guard command 'revoke' by checking for certificates of the same file-name in the 'expired' or 'renewed/issued' directories, first.

Move the check to the revoke() function.

Also, pass the target directory as the first argument to the revoke() function, instead of setting a variable in the command selection phase.

@TinCanTech TinCanTech self-assigned this Dec 9, 2024
@TinCanTech TinCanTech force-pushed the revoke-conflicting-file-check-v2 branch 2 times, most recently from 7d331ae to 16043e2 Compare December 9, 2024 01:59
Ref: commit 38bf2d8

In order to avoid accidentally revoking an issued certificate,
when an expired or renewed certificate is intended, guard command
'revoke' by checking for certificates of the same file-name in
the 'expired' or 'renewed/issued' directories, first.

Move the check to the revoke() function.

Also, pass the target directory as the first argument to the
revoke() function, instead of setting a variable in the command
selection phase.

Signed-off-by: Richard T Bonhomme <[email protected]>
@TinCanTech TinCanTech force-pushed the revoke-conflicting-file-check-v2 branch from 16043e2 to 0196300 Compare December 9, 2024 02:11
@TinCanTech TinCanTech added this to the v3.2.2 milestone Dec 9, 2024
@TinCanTech TinCanTech merged commit a04f761 into OpenVPN:master Dec 9, 2024
4 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.

1 participant