• 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.

Resolved how to obtain the SSL/TLS certificate used for mail?

I've found "something"

In the database there is something thatmight be what i'm looking for

SELECT * FROM `Parameters` WHERE parameter='mail_certificate_id'

what the field 'id' in that table refers to?

Can i connect to database from an extension? maybe calling the command line?
 
This Query shows the information i need.

SELECT d.name,ds.type,c.name
FROM domains d
LEFT JOIN DomainServices ds ON ds.dom_id=d.id AND ds.type='mail'
LEFT JOIN Parameters p ON p.id=ds.parameters_id AND p.parameter='mail_certificate_id'
LEFT JOIN certificates c ON c.id=p.value

Is there any way to execute queries in database from an extension?

Thanks.
 
I have no idea because I always secure and select certificate from the plesk panel itself
 

Attachments

  • ssl.jpg
    ssl.jpg
    33.5 KB · Views: 3
If someone needs it, this is how you can make a database query from an extension

$data= pm_Bootstrap::getDbAdapter()->query("SELECT * FROM table")->fetchAll();
 
Back
Top