Plesk Linux

Plesk: How to Disable SSL with command line

This guide will help you how to disable SSL with command line interface. Basically what you should do is is type correctly within your console terminal or ssh as root on respected server. Make sure you double check your script and customer request (if any) first before proceed the command.

Command Line

/usr/local/psa/bin/subscription -u <domain> -ssl false

This can be applied for domain or subdomain. This command line usually used when you are going to execute domains or subdomains with so many. ie. larger than 10, 20 or even 100.

Wait… 100 Domains / Subdomains? How do I do it?

Simply create a script and use looping to selected domain. ie.

vi myscript.sh

Fil the script with :

/usr/local/psa/bin/subscription -u <domain1> -ssl false
/usr/local/psa/bin/subscription -u <domain2> -ssl false
/usr/local/psa/bin/subscription -u <domain3> -ssl false
/usr/local/psa/bin/subscription -u <domain4> -ssl false
/usr/local/psa/bin/subscription -u <domain5> -ssl false

And execute it.

sh myscript.sh

Want to improvise? Feel free to create your own and post as comment here. Or any reference good.

Leave a Reply

Your email address will not be published. Required fields are marked *