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

Small cleanup and adding two new options: --key-chown and --key-chmod #5248

Closed
wants to merge 2 commits into from

Conversation

tehnic-take3
Copy link

@tehnic-take3 tehnic-take3 commented Aug 16, 2024

Hello,

i added two new options to acme.sh:

  1. --key-chown <owner[:group]>
  2. --key-chmod <perm>

They only have an effect when used in combination with --key-file.

The purpose of them is to explicitly set the owner/group and file permission of the copied key file.
The arguments of them have to follow the chown/chmod argument syntax.

Example usage (for Debian systems):

acme.sh --install-cert --domain example.com --key-file /etc/ssl/private/example.com.key --key-chown "root:ssl-cert" --key-chmod "640" --fullchain-file /etc/ssl/certs/example.com.crt --reloadcmd "systemctl reload postfix apache2"

I tested functionality of them with --install-cert, --issue and --renew.

Best regards,
Robert

Robert Velter added 2 commits August 16, 2024 12:24
Both options have only an effect when used in combination with --key-file.
Their purpose is to change owner/group and permission of copied key file.
The arguments to the options have to follow the chown/chmod argument syntax.
@Neilpang Neilpang closed this Sep 15, 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.

2 participants