Skip to content

Data and settings

SSLense keeps everything in C:\ProgramData\SSLense. The app, the command line and the renewal service all use it.

File or folder What it holds
config.json Settings, with DNS tokens, notification passwords and webhook URLs encrypted
managed-certificates.json The certificates SSLense manages: sites, host names, dates, thumbprints, renewal results, deployment steps
history.json Each certificate's timeline
account-key.staging.dat, account-key.production.dat, account-key.<id>.dat One ACME account key per certificate authority, encrypted
pending-requests.json Open certificate requests (CSRs); their private keys are in the Windows machine key store, never in files
certificates\ Saved public certificates (PEM). Private keys are never saved as files
dns-scripts\, deploy-scripts\ SSLense's own copies of your scripts, the only copies it runs
logs\sslense-YYYYMMDD.log Daily logs, kept for 30 days
transactions\, challenges\, dns-challenges\, locks\ Working files that let an interrupted operation be finished or undone at the next start
service-heartbeat.json, reminder-state.json When the service last ran, and when the last digest was sent

Private keys stay in the Windows certificate store, as non-exportable keys unless you chose an exportable one. Passwords, tokens, webhook URLs and account keys never appear in logs.

Secrets are encrypted with Windows DPAPI for the machine, so any account on the server that can read a file could decrypt it. The folder's permissions are what protect them. Each time the app, an elevated command line or the service starts, SSLense:

  • restricts the folder to Administrators and SYSTEM, removing the default access for Users;
  • makes Administrators the owner of the folder and everything in it;
  • removes extra permissions on files inside, so everything inherits the restricted rules.

If it finds a symbolic link, junction or hard link inside, it changes nothing and warns, naming the item, because Windows would apply the change through the link to somewhere else. Remove the item and start SSLense again.

Terminal window
SSLense.Cli check-permissions # read-only; exits with 1 if there is a problem
SSLense.Cli secure-data # applies the permissions now

config.json, managed-certificates.json and the other state files carry a schemaVersion. Before SSLense first rewrites a file from an older version, it saves the original next to it as <file>.v<old version>.bak.

A file written by a newer SSLense is never changed: SSLense stops and says to install the newer version (SSL6023), so going back to an older version cannot damage your data. The upgrading page lists which versions changed the data.

A full system backup of the server restores everything as it was, because the encryption keys and the certificate store come back with it.

Copying the folder to another server does not work: DPAPI secrets only open on the server that encrypted them, and private keys never leave the certificate store. To move to another server, export the settings with their secrets under a password and issue the certificates again; see settings export and import.