Skip to content

Contributing

Thanks for helping. Bug reports, documentation fixes, tests, and code are all welcome.

  • Security problems: do not open a public issue; follow SECURITY.md.
  • Larger changes: open an issue first to agree on the approach, especially for anything touching renewal, IIS bindings, the certificate store, or secrets.
  • Read PROJECT_SPEC.md and ROADMAP.md for the design and priorities.
  1. Pick an issue labelled good first issue, or ask in Discussions if you are unsure where to start. Comment on the issue so nobody else takes it at the same time.
  2. Fork the repository, create a branch, and make the change with a test.
  3. Run dotnet build and dotnet test (below), then open a pull request that says what changed and how you checked it.

You do not need an IIS server to contribute. The test suite needs only Windows and the .NET 10 SDK. It runs without Administrator rights, uses mocks, an in-memory file system and a throwaway test certificate authority, and never changes IIS or contacts Let's Encrypt. An IIS machine is only needed to try a change by hand.

Folder What it contains
src/SSLense.Core All behaviour. Acme (Let's Encrypt and other CAs), Certificates (store, imports, validation), Iis (sites and bindings), Renewal, Reminders, Notifications, Diagnostics (health check and bundles), Config (settings and state files)
src/SSLense.Gui The WPF desktop app: Views (XAML) and ViewModels, which only call Core
src/SSLense.Cli The command line (Program.cs), also only calling Core
src/SSLense.Service The Windows service that runs renewals and reminders every hour
tests/SSLense.Tests xUnit tests, organised like src/SSLense.Core
installer The WiX MSI
site The website, sslense.com, published to Cloudflare when it changes
docs-site The documentation site, docs.sslense.com (Starlight), published to GitHub Pages when it changes
docs Pages the documentation site copies in (runbooks, the threat model, generated CLI and error references), and the screenshots in docs/images
docs/design Design documents for larger features
docs/testing Manual test plans, including the combined test before a release

Requirements: Windows, the .NET 10 SDK (see global.json), and IIS with IIS Management Scripts and Tools for manual testing.

Terminal window
dotnet build .\SSLense.sln
dotnet test .\SSLense.sln

Both must pass with no warnings; warnings are treated as errors.

To try a change on an IIS machine, run the apps from an Administrator terminal (use Let's Encrypt staging):

Terminal window
dotnet run --project .\src\SSLense.Gui
dotnet run --project .\src\SSLense.Cli -- status

The renewal service is easiest to try from an installed MSI. To run your build of it instead, publish it and register it with dotnet run --project .\src\SSLense.Cli -- install-service --service-path <path to SSLense.Service.exe>, and remove it with uninstall-service before installing an MSI.

Some committed files are generated, and a test fails when they no longer match the code. Run the tests with these set to rewrite them:

File Setting
docs/cli.md, the CLI reference SSLENSE_UPDATE_CLI_DOCS=1
docs/errors.md, the error codes SSLENSE_UPDATE_ERROR_DOCS=1
docs/images/app/*.png, the app's screenshots (not checked by CI) SSLENSE_UPDATE_SCREENSHOTS=1

Needs Node.js 24. Its packages are pinned, and install scripts are off.

Terminal window
cd docs-site
npm ci
npm run dev # http://localhost:4321, reloads as you edit
npm run build # what CI builds

installer\build.ps1 publishes the apps self-contained (the server needs no .NET) and builds artifacts\installer\SSLense-<version>-x64.msi. It uses WiX Toolset v7, which requires accepting its Open Source Maintenance Fee EULA: read it, then pass -AcceptWixEula, or accept it once for your Windows account:

Terminal window
dotnet build .\installer\SSLense.Installer -t:AcceptEula -p:EulaId=wix7
.\installer\build.ps1

The installer project is not part of SSLense.sln, so dotnet build and dotnet test never need WiX. The version, publisher and product name are in Directory.Build.props; the icon and logos in assets\branding; the bundled .NET runtime is build.ps1 -RuntimeVersion.

  • Use Let's Encrypt staging only. Never run tests or experiments against the production endpoint. Production rate limits are shared and easy to exhaust.
  • Keep the GUI and CLI thin. Business logic belongs in SSLense.Core, behind interfaces that tests can mock. Every operation should work identically from the GUI and the CLI.
  • Never log secrets: private keys, PFX passwords, ACME account keys, SMTP passwords, or webhook URLs.
  • Never leave a site without a working binding. Changes to issuance, renewal, or binding code must preserve the existing certificate until the replacement is verified, and need tests for the failure paths.
  • Add tests for new behaviour and for every bug fix.
  • Dependencies: discuss new NuGet packages in an issue first. They must use a license compatible with Apache-2.0.
  • Match the surrounding code's style, naming, and comment density.

SSLense uses the Developer Certificate of Origin. By adding a Signed-off-by line to each commit, you certify that you wrote the change or have the right to submit it under the project's license:

Terminal window
git commit -s -m "Describe the change"

This adds Signed-off-by: Your Name <your.email@example.com>, using your Git name and email.

By contributing, you agree that your contributions are licensed under the Apache License 2.0.