Skip to content

Install

SSLense is installed from one MSI, which contains the desktop app, the command line and the renewal service. Each release on GitHub has the MSI, its SHA-256 in a .sha256 file, and a software bill of materials.

This downloads the MSI, checks it against the SHA-256 published with the release, and only then starts the installer. Run it in PowerShell as Administrator, with the version you want:

Terminal window
$version = '0.24.0' # the release to install
$ProgressPreference = 'SilentlyContinue' # Windows PowerShell downloads far faster without the progress bar
$base = "https://github.com/panchalvimaldev/sslense/releases/download/v$version"
$msi = Join-Path $env:TEMP "SSLense-$version-x64.msi"
Invoke-WebRequest "$base/SSLense-$version-x64.msi" -OutFile $msi -UseBasicParsing
Invoke-WebRequest "$base/SSLense-$version-x64.msi.sha256" -OutFile "$msi.sha256" -UseBasicParsing
$expected = (Get-Content "$msi.sha256" -Raw).Trim().Split(' ')[0]
if ((Get-FileHash $msi -Algorithm SHA256).Hash -ne $expected) { Remove-Item $msi; throw 'The SHA-256 does not match, so SSLense was not installed.' }
Start-Process msiexec.exe -ArgumentList "/i `"$msi`"" -Wait

A file downloaded this way is not marked as coming from the internet, so SmartScreen does not step in.

  1. Download SSLense-<version>-x64.msi from the latest release.
  2. Check it: in PowerShell, Get-FileHash .\SSLense-<version>-x64.msi -Algorithm SHA256 must match the SHA-256 on the release page.
  3. Run it, accept the Apache-2.0 license, and choose Install.

SSLense releases are not code-signed, so Windows may show “Windows protected your PC” for a newly published MSI. This does not mean anything was found in the file: SmartScreen warns about any installer it has not seen often. Once you have checked the SHA-256, choose More info › Run anyway, or right-click the MSI, choose Properties, tick Unblock, and run it.

Once SSLense is published in the winget repository, winget install sslense installs it and winget upgrade sslense upgrades it. winget checks the MSI against the SHA-256 in its manifest before running it.

  • Installs to C:\Program Files\SSLense, and adds the command line to the system PATH.
  • Registers and starts the SSLense renewal service, which restarts itself if it fails.
  • Adds SSLense to the Start menu and to Apps & features.
  • Restricts C:\ProgramData\SSLense, where certificates, accounts and settings are kept, to Administrators and SYSTEM.

Upgrading stops the service, replaces the files and starts it again. Uninstalling removes the program and the service, but keeps C:\ProgramData\SSLense and leaves your IIS bindings and certificates as they are, so sites keep working.

Terminal window
msiexec /i SSLense-0.24.0-x64.msi /qn # silent
msiexec /i SSLense-0.24.0-x64.msi /qn START_SERVICE=0 # silent, service installed but not started
msiexec /x SSLense-0.24.0-x64.msi /qn # silent uninstall

Before upgrading from an earlier version, read upgrading: some versions rewrite the data files, and the previous version cannot read them afterwards.