Sites, names and certificates
One certificate on several sites
Section titled “One certificate on several sites”A certificate that uses DNS validation, such as *.example.com, can serve several IIS sites that renew together. Issue it for the first site, then share it. Sharing orders nothing from the certificate authority.
In the app, select the certificate and open its Sites tab, which lists the sites using it. Open Add a site, choose the IIS site, and choose Add site. Host names (optional) can stay empty, to use every named binding on the site that the certificate covers. If SSLense already manages another certificate for that site, also tick Replace the site's own certificate. Stop managing on a site's row is the same as share remove.

From the command line:
SSLense.Cli issue --site "Shop" --email ops@example.com --validation dns --names "*.example.com,example.com" --hosts "shop.example.com,example.com"SSLense.Cli share add --from "Shop" --to "Blog" --hosts "blog.example.com"SSLense.Cli share remove --site "Blog"share addwithout--hostsuses every named binding on the site that the certificate covers. If SSLense already manages another certificate for that site, add--replace-existing.share removestops managing that site and leaves its binding as it is, so the site keeps working until the certificate expires.- Renewing any of the sites renews them all. SSLense tries each new certificate before touching a real site, moves the sites one at a time, and checks over HTTPS what each one serves. A site with a problem is left on its previous certificate, you are told its name, and SSLense keeps trying to move it; Try moving now tries straight away.
- Only DNS validation, because HTTP validation would have to reach every site.
Several certificates on one site
Section titled “Several certificates on one site”A site that serves several domains, each through its own HTTPS binding with its own certificate, has each certificate managed on its own. The first keeps the site's name; the others are named <site>/<first host>, such as Shop/www.other.example.
- Issue for host names that no certificate on the site has yet, and SSLense adds a certificate;
issueprints the name it is managed as. - Replacing one changes only its own bindings. Host names that belong to two certificates are refused.
- A certificate on such a site can be shared with other sites, but a certificate cannot be shared to a site that has several of its own (SSL4026).
Bindings without a host name, and other ports
Section titled “Bindings without a host name, and other ports”Older sites often have an HTTPS binding with no host name (*:443:), or bindings on other ports such as 8443.
- A binding without a host name is renewed in place, as long as the new certificate covers every name the old one did. Otherwise SSLense adds an SNI binding for the host and leaves the old binding alone.
- Bindings on other ports follow the site's port 443 bindings at every renewal and rollback.
- A certificate bound only on another port cannot be adopted until the site has a port 443 binding for it (SSL4001): SSLense replaces certificates on port 443, and the others follow.
Certificates for IP addresses
Section titled “Certificates for IP addresses”Let's Encrypt issues certificates for IP addresses as short-lived certificates (about six days), validated over HTTP with SSLense answering:
SSLense.Cli issue --site "Default Web Site" --hosts 203.0.113.10 --validation http-self --profile shortlived --email ops@example.com- The address is bound in IIS by address, without SNI.
- On a cloud server or behind NAT, the public address is not on the server's network adapter. SSLense binds the server's own address instead; if it cannot tell which one, it refuses before ordering (SSL6035).
- A six-day certificate renews about two days before it expires, so keep the renewal service running.
Internationalized domain names
Section titled “Internationalized domain names”Names such as bücher.example.com work as you type them. SSLense uses their ASCII form, xn--bcher-kva.example.com, with the certificate authority and DNS, and the Unicode form in IIS bindings, which IIS needs: it will not start a site bound to the ASCII form.