Repository navigation
SSLense 0.22.0
Pre-releaseCertificates for more than IIS sites, and DNS validation at any DNS host
This release brings together 0.17 to 0.21, which were not released separately.
DNS validation through acme-dns
DNS validation now works at any DNS host, even one without an API. Create one CNAME once, and SSLense renews through an acme-dns account that can change only the validation record, never the rest of your DNS.
SSLense.Cli dns add --provider acme-dns --name "Shop acme-dns" --domain example.com --server https://auth.acme-dns.io
- Register or import: register a new account on any acme-dns server, or import an existing one. The password is encrypted with Windows DPAPI and never appears in logs or diagnostic bundles.
- The CNAME is checked before each order and daily.
- The account's two-value limit is checked before ordering. A wildcard with its base name fits; SSLense refuses a certificate that needs more.
- In the app: Settings → DNS providers.
Deployment steps
Run steps after a certificate is installed and after every renewal:
SSLense.Cli deploy add --site "Shop" --grant-key-access "IIS AppPool\Shop"
SSLense.Cli deploy add --site "Shop" --restart-service MSSQLSERVER
SSLense.Cli deploy add --site "Shop" --script C:\Scripts\my-deploy.ps1
- Grant private-key access to an app pool or service account, restart a Windows service, or run a PowerShell script, which receives the new and previous thumbprints, the host names and the expiry date.
- A failing step keeps the previous certificate in the store and is retried every hour. You get a notification on the first failure and when the step recovers.
- In the app: Certificate Details → Deployment steps, with Run now.
Certificates without an IIS site
Issue and renew certificates for Remote Desktop, SQL Server, Exchange and other services, using DNS validation:
SSLense.Cli issue --no-site "Remote Desktop" --names rdp.example.com --validation dns --email ops@example.com
SSLense.Cli deploy add --site "Remote Desktop" --script "C:\Program Files\SSLense\deploy-scripts\RemoteDesktop.ps1"
Example scripts for Remote Desktop, SQL Server and Exchange are installed in deploy-scripts, with a template for your own. In the app, tick No IIS site in Issue Certificate.
Export
Copy a certificate to other systems after every renewal, as a PFX, as PEM files, or into the IIS Centralized Certificate Store:
SSLense.Cli issue --site "Shop" --email ops@example.com --exportable-key
SSLense.Cli deploy add --site "Shop" --export-pfx D:\Certs\shop.pfx
SSLense.Cli deploy add --site "Shop" --export-pem D:\Certs\shop
SSLense.Cli deploy add --site "Shop" --central-store \\fileserver\ccs
Export works only for certificates issued with an exportable key; private keys stay non-exportable by default. Passwords are encrypted with DPAPI, files are written whole or not at all, and key.pem can be read only by Administrators, SYSTEM and the account that wrote it.
Key type, chain and profile
SSLense.Cli issue --site "Shop" --email ops@example.com --key rsa-3072 --preferred-chain "ISRG Root X1" --profile shortlived
- Key type: ECDSA P-256 (the default) or P-384, or RSA 2048, 3072 or 4096.
- Preferred chain and ACME profile, such as Let's Encrypt's short-lived certificates.
SSLense.Cli ca testlists the profiles a CA offers. - Every renewal keeps the choices. In the app, they are under Advanced in Issue Certificate.
Private-key reuse
--reuse-key keeps the same private key at every renewal, for key pinning and DANE TLSA records. The certificate request is signed in the Windows key store, so the key never leaves it. If the key can't be reused, the renewal uses a new key and says so, rather than let the certificate expire.
Upgrading
Install the MSI over 0.16. Settings and certificates are kept, and nothing changes until you use a new feature.
The first save moves config.json and managed-certificates.json to newer formats, which 0.16 cannot read. The originals are kept as config.json.v7.bak and managed-certificates.json.v5.bak. To go back to 0.16, restore those copies. Certificates issued since are then no longer managed.
Notes
- Unsigned preview build. Windows SmartScreen may warn until releases are code-signed.
- SHA-256 of
SSLense-0.22.0-x64.msi:0f9c176cc4118bddd5587599e455db62b2831725b0e8d0c95c1f779df8503e7f