Skip to content

Instantly share code, notes, and snippets.

@c1982
Created April 28, 2013 23:09
Show Gist options
  • Save c1982/5478805 to your computer and use it in GitHub Desktop.
Save c1982/5478805 to your computer and use it in GitHub Desktop.
Get SSL certificates IP and Domain names
SELECT domains.name, ip_addresses.ip_address, certificates.name AS cert_name, certificates.ca_file
FROM ((domains INNER JOIN
hosting ON domains.id = hosting.dom_id) INNER JOIN
(ip_addresses INNER JOIN
certificates ON ip_addresses.ssl_certificate_id = certificates.id) ON hosting.ip_address_id = ip_addresses.id)
ORDER BY ip_addresses.ip_address
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment