Skip to content

Day-to-day tools

Send a site's HTTP visitors to HTTPS with an IIS URL Rewrite rule that never redirects validation requests, so HTTP validation keeps working. It needs the IIS URL Rewrite module.

In the app: select the certificate, then ⋯ › Redirect HTTP to HTTPS, and ⋯ › Stop redirecting HTTP to undo it.

Terminal window
SSLense.Cli redirect on --site "Shop"
SSLense.Cli redirect show --site "Shop"
SSLense.Cli redirect off --site "Shop"
  • SSLense checks the result: a validation request must still get through. If another rule redirects it, for example a server-wide rule, SSLense removes its own rule again and says so (SSL1031).
  • Without URL Rewrite installed, it is refused (SSL1029).

Old certificates pile up in LocalMachine\My. Activity › Unused certificates › Find unused certificates lists those that nothing uses and that are expired, from a test certificate authority, or replaced by a newer certificate for the same names. Tick the ones to remove and choose Remove ticked….

Activity, Unused certificates: three found, each with why it can go, and nothing removed until ticked

Terminal window
SSLense.Cli cleanup list
SSLense.Cli cleanup remove --thumbprint <thumbprint>,<thumbprint> --yes
  • Never listed: a certificate any IIS binding or FTP site uses, one HTTP.sys binds (such as WinRM's), one SSLense manages or keeps for rollback, and a valid certificate that is not replaced.
  • Each one is checked again at removal, and one that has started being used is refused (SSL4054).
  • Other services, such as SQL Server or Exchange, choose their certificate in their own settings, which SSLense cannot see. Check them before removing.

Watch every certificate in IIS that SSLense does not manage yet: Add certificate › It's already installed in IIS › Tick all › Watch, or:

Terminal window
SSLense.Cli bulk watch

A certificate bound only on a port other than 443 is skipped, with the reason.

Issue for many sites from a CSV file, one certificate per row:

site,hosts,validation,email,ca
Shop,shop.example.com,http,ops@example.com,letsencrypt-staging
Blog,blog.example.com;www.blog.example.com,dns,ops@example.com,letsencrypt-staging
Terminal window
SSLense.Cli bulk issue --file C:\certs.csv --dry-run # runs each row's checks, orders nothing
SSLense.Cli bulk issue --file C:\certs.csv
  • The columns are site, hosts, validation (http, http-self or dns), names, email, ca, profile and key; a header row may name them. Several names in one field are separated by ;.
  • One row failing never stops the others, and the command exits with 1 if any row failed.
  • A row for a production certificate authority needs --accept-production-risk, or it fails.

Activity › Run checks, or SSLense.Cli health, checks the service, permissions, IIS, each certificate, DNS, port 80, and each certificate authority in use, and says what to do about anything wrong. The header shows the latest result.

Activity: the health checks, with problems first and what to do about each

To check one certificate, select it and choose Check: SSLense connects to each of its domains and compares the certificate served with this one.

A certificate after Check: the site serves the expected certificate

For a bug report, Activity › Create bundle, or SSLense.Cli diagnostics, writes a diagnostic bundle with secrets removed. Tick the option to replace site names, host names and site folders with placeholders before posting it in public.