Skip to content
Cloud · Secret guide

Leaked SSLMate API Key: what to do in the first hour

High severityDetected onlyLast verified · 5 min read

An SSLMate API key lets a script or service manage certificates for your SSLMate account. That can include ordering certificates, reissuing them, and in some cases revoking them. A leaked key therefore has two kinds of consequence: someone could order certificates for your domains, which is the start of a phishing or interception attack, and someone could disrupt your service by revoking or replacing certificates your servers use. Rotate the key first, then review the certificates and orders that were created or changed.

Check your GitHub account for leaked secrets — free

Provider
SSLMate
Severity
High
Impact
SaaS account access and billing
Checked live by LeakWatch
No

What an SSLMate API Key looks like

SSLMate does not, as far as we could confirm, put a readable prefix on its API keys. The rule in LeakWatch looks for a value of 36 letters and digits, and only when the word sslmate appears within a short distance before it. The masked form below shows the general layout:

sslmate … XXXX…XXXX   key shape near the vendor name (masked)

The rule does not match a 36-character string on its own, because that length is common. It needs the vendor’s name nearby, in a configuration file, a command or a script. The SSLMate command-line tool and its configuration are the usual places a key appears. If you are not sure whether a value is an SSLMate key, look at the API credentials for your account and compare the last characters before deciding how to respond.

How SSLMate API Keys get leaked

  • Automation repositories. A script that renews or deploys certificates, with the key written into it so that it runs unattended.
  • Configuration files. A settings file for the command-line tool, copied into a shared folder or a dotfiles repository.
  • Deployment pipelines. A workflow that sets the key as a variable and prints the environment or the command arguments in its log.
  • Server backups. A configuration directory backed up to shared storage without the access controls the server itself has.
  • Shared support requests. A key pasted into a ticket when an order or renewal failed.

What to do in the first hour

  1. Rotate or remove the key. Sign in to your SSLMate account and open the account settings for API credentials. Revoke or replace the key that leaked. If you cannot find a way to revoke it in the interface, contact SSLMate support as well, and ask them to disable it.
  2. Deploy the replacement to the automation that needs it, and test a renewal or a listing of your certificates before you rely on it.
  3. Review orders and certificates. List the certificates and recent orders on the account for the period since the exposure. Look for certificates you did not order, for domains you do not own, and for revocations you did not make.
  4. Check the domains. Make sure the domains on the account are the ones you expect, and that the contact details and validation methods have not been changed.
  5. Look at the systems that use the certificates. Confirm that the certificates installed on your servers match the ones on your account. An unexpected certificate on a live host is a serious sign.
  6. Check the rest of the file. Revoke the other credentials stored next to the key, such as DNS API tokens used for validation, since those can be used to complete a domain check.
  7. Clean the repository. Remove the value from current files, add the configuration file to .gitignore, and rewrite history if the repository was public. See I accidentally pushed an API key to GitHub for the full order.

Not sure what else leaked from the same repository? Run a free scan.

Not sure what else leaked? Run a free scan.

Revoke it at SSLMate

The sources we reviewed did not agree on how an SSLMate API key is revoked. Some describe a revoke control on the API credentials page of the account, while others say that the vendor’s support must act on a key. Start with the API credentials section of the account settings, look for a delete or revoke control next to the key, and create a replacement if the interface lets you. If there is no such control, contact SSLMate support and explain that the key is compromised. The vendor’s API documentation for keys was not retrieved for this guide, so check it directly. Be careful not to confuse this with certificate revocation, which is a different action that ends the trust of a certificate itself. Revoking a certificate is sometimes the right step after a key compromise, but it is not the same as replacing the key.

How LeakWatch detects it

The rule is called “SSLMate API Key”. It looks for the word sslmate, followed within about 40 characters by a value of exactly 36 letters or digits, with word boundaries around the value. The word requirement is what keeps the rule from matching the 36-character shape alone. The severity is high, with the SaaS impact class, because the key can order and manage certificates for your domains. This type is not checked live: LeakWatch does not send the value to SSLMate, so a finding means a matching value sat near the name, not that it is still valid.

LeakWatch detects this format but does not check it live: it can tell you the key is exposed, not whether it still works. Assume it does until you have revoked it.

FAQ

Can someone use a leaked SSLMate key to get a certificate for my domain?

That is the main risk. Certificate authorities check domain control before issuing, and the key does not bypass that check on its own, but it can start orders and manage the certificates that are already issued. Review the orders and certificates for domains you do not recognize.

Is revoking a certificate the same as revoking the key?

No. Revoking a certificate ends the trust in that certificate. Revoking the API key stops the key from working. After a key leak, you usually need the second action, and sometimes the first as well, if a certificate may have been issued to someone else.

How should automation handle this in future?

Store the key in a secret store, scope it to the domains that need it where the account allows, and rotate it on a schedule. Keep a record of which system uses which key so the next rotation is quick.

Get alerted next time a secret leaks — create a free account

LeakWatch is not affiliated with SSLMate.