Skip to main content

User Guide · for DomainMOD 5.0.0

SSL Queue

On This Page

As of v4.27.0, the SSL Queue imports your SSL certificates for you. Paste a list of hostnames, and DomainMOD connects to each site, reads the certificate it serves, and adds it as an SSL certificate with its expiry date and issuer. New certificates are linked to their domain when DomainMOD has just one record of that domain. As of v5.0.0, a new certificate for a subdomain you track is linked to that subdomain.

Requirement

The SSL Queue is processed by the SSL Queue Processing task, so you must set up the cron job that comes with DomainMOD (Docker installs already run it).

Adding SSL Certificates Automatically

  1. Click SSL Certificates on the main menu.

  2. Choose Add SSL Certificates Automatically from the menu beside the Add SSL Certificate button. Before you have any SSL certificates, it's a button on the page instead.

  3. Paste in up to 1,000 hostnames, one per line. Each line can be a hostname, such as example.com, or an https:// address.

  4. Choose the SSL Provider Account. Match each certificate's issuer (recommended) finds or adds the SSL provider for each certificate's issuer, and uses your account there, or adds an account named "SSL Import". Then choose the Owner (used with issuer matching, since a chosen account has its own owner), and, under Defaults for New Certificates, the Certificate Type, IP Address, and Category. The Owner, IP Address, and Category start on Same as the Domain, which gives each certificate its domain's values, or your SSL defaults for a hostname whose domain isn't in DomainMOD.

  5. Click the Add SSL Certificates button, and you'll be taken to the Import Queue page, where you can follow the progress of your imports.

Only port 443 is checked, and only public sites can be reached. A hostname whose domain is still in the Domain Queue waits up to 7 days for it, and is then checked anyway. A certificate that's already in DomainMOD isn't added again: that's a live certificate with the same hostname, or the very same certificate. An expired record with the same hostname doesn't stop the new certificate being added. To update an existing certificate's expiry date, use Refresh on its edit page (see below).

You can also import certificates while you add domains: when you add domains with the Domain Queue, Also import each domain's SSL certificate (on by default) adds each domain's site to the SSL Queue. Only the domains you paste are looked up, not the ones a registrar's API supplies.

The Import Queue

The Import Queue page shows the Domain Queue and the SSL Queue, one after the other, each with its own buttons. While either queue has entries, you can open it with Import Queue on the main menu.

For each hostname, the SSL Queue shows its status, such as Pending, Processing, Retrying, Waiting for the Domain, Imported, or Failed, with the reason when there is one. An imported certificate that has expired or isn't trusted gets an Expired or Not trusted badge. A hostname is tried up to three times before it fails. Use Retry Failed to put failed hostnames back in the queue (a hostname whose chosen account or other setting has since been deleted has to be added again instead), Clear Completed to remove the finished ones, and Export to download the list.

Note

A new certificate gets its fee from its SSL provider and type, like any other SSL certificate. If they have no fee yet, it's saved without a cost, shows No fee in the SSL Certificates list, and is left out of cost totals (see Missing Fees in Reporting -> Registrar and Provider Fees -> SSL Certificates).

Finding Missing SSL Certificates

As of v5.0.0, the Find Missing SSL Certificates task can add the SSL certificates you haven't added yet. It's off by default, and an administrator can turn it on in Administration -> Task Scheduler once SSL Queue Processing is on and DomainMOD has at least one SSL certificate type, owner, category, and IP address (see Task Scheduler).

Each run checks up to 25 live domains (domains that aren't Expired or Sold) that have no live SSL certificate in DomainMOD, starting with the ones it hasn't checked before. It reads the certificate served at the domain's own name, such as example.com, and then at its www name, such as www.example.com, if the first gives no certificate that's within its dates and covers that name. Live subdomains of live domains that have no live SSL certificate linked to them are checked too, within the same 25, but only at the subdomain's own name. The certificate it finds goes into the SSL Queue under the name that served it. A domain whose certificate went into the queue isn't checked again for 7 days (once the certificate is imported, the domain has a live certificate and drops off the list), one whose certificate turned out to be in DomainMOD already waits 30 days from when it was queued, and one with no certificate, or whose check failed, waits 30 days.

The SSL Queue then reads the site again before it saves the certificate, as it does for a hostname you paste. The task's rows show Task Scheduler in the Import Queue's Added By column, and each one stays with the domain it was found for, including after Retry Failed. Each certificate gets the owner, category, and IP address of its domain. Its SSL provider and account are matched to its issuer, as Match each certificate's issuer (recommended) does for the hostnames you paste, and its type is the Default SSL Type set in Administration -> System Defaults. The import is recorded in the Change History with the source SSL Queue: Find Missing SSL Certificates.

A row isn't imported if, by the time the SSL Queue gets to it, its domain has been deleted (The domain no longer exists.), is no longer live (The domain is no longer live.), or has a live SSL certificate (The domain already has a live SSL certificate.), or if the certificate has expired (The certificate wasn't imported because it has expired.). If every certificate in DomainMOD with that hostname is Expired, and none of them holds the certificate the site serves now, the new certificate is added as a new record, and the expired ones are kept as they are. A certificate whose fingerprint is saved on a record in DomainMOD, even an Expired one, is never added again, and a live record with the same hostname, linked to another domain or to none, counts as already in DomainMOD, so the row finishes as Already in DomainMOD and that record is left as it is.

Adding an SSL Certificate Manually

First add an SSL provider and an SSL provider account, if you haven't already. Then click SSL Certificates on the main menu, and click the Add SSL Certificate button. Enter the certificate's Host / Label, such as example.com, and fill in its details. As of v4.27.0, a certificate doesn't need a domain: set Domain to None for one that isn't for a domain in DomainMOD. When you delete a domain, its SSL certificates are kept without a domain.

Refreshing an SSL Certificate

As of v4.27.0, an SSL certificate's edit page has a Refresh button near the top. It reads the certificate the site serves now, and updates the expiry date and status when they've changed, with a note saying what changed. A pending status is kept, and the SSL provider, account, type, and fee aren't changed. Refresh needs the certificate's Host / Label to be the hostname it's installed on, such as example.com, and part of the certificate's domain, if it has one.

As of v5.0.0, the Refresh SSL Certificates task does the same in the background, a few certificates at a time, and records its changes in the Change History as Scheduled Refresh. It reads every live certificate, and each one marked Expired whose expiry date is no more than 30 days ago, or still to come. Each is checked about once a week, and daily from 30 days before its expiry date. It's on by default, and an administrator can turn it off in Administration -> Task Scheduler (see Task Scheduler). For it to run on its own, the cron job must be set up (Docker installs already run it).

To have the task check certain certificates soon, use the Bulk Updater's Refresh from Each Site action (see SSL Certificates). The action doesn't check them itself. It makes them due, so the task reads them at its next runs, a few at a time, as long as they still qualify then, rather than waiting for their next scheduled check. It can queue the certificates the task reads: live ones, and Expired ones whose stored expiry date is on or after the date 30 days ago (in UTC). Each one's Host / Label has to be a hostname, and for a certificate linked to a domain, that domain or one of its subdomains. The preview says which certificates won't be checked, and why. It's offered while Refresh SSL Certificates is on. The task reads them when the cron job runs it, or when an administrator uses Run Now in Administration -> Task Scheduler.

Each certificate's Change History section starts with its automatic check status, such as when it was last checked (by the task or by Refresh) and when its next check is due, or why the last check failed and when it'll be tried again. Before its first check, the status says it hasn't been checked automatically yet, and while the task is off, it says automatic checks are off. A certificate the task doesn't check, such as one that expired more than 30 days ago, has no status.

On the SSL Certificates list, the Refresh Status filter finds the certificates whose last check (automatic, or a Refresh) worked (OK) or failed (Failing), and the ones that haven't been checked yet (Never Refreshed). From v5.0.0 on, a certificate the SSL Queue adds counts as checked when it's added. As of v5.0.0, its Site Lookup filter finds them by what the last successful read of the site's certificate found (Trusted, Not Trusted, or Expired), and the ones with no saved result (No Result).

The SSL Certificates list shows the Total Yearly Cost and Average Monthly Cost of the certificates your filters match. Raw List opens their names as a plain list you can copy, and Changes opens the certificates' Change History.

Edit this page on GitHub