How to enable/disable SSL support for Subscription on Plesk for Linux

Follow

Comments

3 comments

  • Avatar
    Shawn Carron

    Can we have the command to do this for all; domains on a server via cli?

    0
    Comment actions Permalink
  • Avatar
    Alexey Lapshin (Edited )

    Hello, @Shawn Carron

    It is possible to perform using the following steps:

    Generate list of subscriptions:

    # plesk bin subscription --list > subs.txt

    Apply changes to all subscriptions listed in the file subs.txt:

    # cat subs.txt | while read i; do plesk bin subscription --update $i -ssl true; done

    0
    Comment actions Permalink
  • Avatar
    Shawn Carron

    Thanks! It can also be done using the following:

    # for i in `plesk db -Nse "select d.name from domains as d join hosting as h where h.ssl='false' and h.dom_id=d.id;"`; do plesk bin domain -u $i -ssl true; done

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request