• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Question Obtain status of HTST with SSL/It of domain via command line

Server operating system version
Ubuntu 22.04
Plesk version and microupdate number
Plesk Obsidian 18.0.75
HI:

I want to check what domains have active HSTS, but the command of "plesk ext sslit", only active o disable the optionj, and i cant check if is enabled or not¿?

I have tried whit the command: grep -i strict-transport-security /var/www/vhosts/system/*/conf/nginx.conf and i see what is enabled, but not what is disabled

Somebody can help me¿?

Thanks!
 
To my knowledge there is no Plesk utility or build-in option to retrieve the HSTS status. I suspect that's because the status is only stored in the domain's nginx configuration. What you can do instead is use a bash/shell command to loop trough all domains and perform a grep search on the corresponding configuration file of the domain. Something like:

Code:
plesk bin domain -l | while read dom_name; do if ! grep -qi strict-transport-security /var/www/vhosts/system/$dom_name/conf/nginx.conf; then echo $dom_name; fi; done
 
Hi @Kaspar

Thanks for the command line to fine the HSTS dont actived.

Yes, i see that dont have that option, but is a good option to find the domain, because, i have server that dont have nginx, and the command failed, because only find in conf of nginx, but, i see that apache can check with this command: grep -ri --exclude='*.bak' 'strict-transport-security' /var/www/vhosts/system/*/conf/

Thanks!
 
Back
Top