Plesk

How to enable “Keep secured” option for automatic SSL certificates updates from the CLI?

Question

How to enable "Keep secured" option for automatic SSL certificates updates from the CLI?

How to enable "Keep secured" option for all subscriptions?

Answer

  1. Connect to the server via SSH

For a domain

Issue the following command:

# plesk bin subscription --add-custom-plan-item example.com -custom-plan-item-name "urn:ext:sslit:plan-item-sdk:keep-secured"

Note: replace "example.xom" with the desired domain name.

For all subscriptions

Issue the following command:

# plesk bin subscription --list | while read subs; do plesk bin subscription --add-custom-plan-item $subs -custom-plan-item-name "urn:ext:sslit:plan-item-sdk:keep-secured"; done

For a service plan

Issue the following command:

# plesk bin service_plan --add-custom-plan-item "ExamplePlan" -custom-plan-item-name "urn:ext:sslit:plan-item-sdk:keep-secured"

Note: replace "ExamplePlan" with the desired service plan name.

Exit mobile version