Certificates¶
Lime CRM Server needs a certificate for HTTPS, and a certificate has to be renewed before it expires. From 2026.3 the renewal can be automated in two ways.
Let Lime CRM Server do it¶
Use this if you have no tool that renews certificates today. Lime CRM Server gets a certificate from Let's Encrypt, a free certificate authority, and renews it by itself. There is nothing more to install or schedule.
It needs two things:
- A DNS name that points to the server, for example
crm.example.com. - Port 443 on the server open from the whole internet. It can not be limited to certain addresses, see Firewall.
Follow Automatic certificates.
Use your own tool¶
Use this if you already renew certificates with win-acme or another ACME client, and want to keep it. Your tool gets and renews the certificate as before, and a tool that comes with Lime CRM Server puts each new certificate in place.
This is also the way when port 443 can not be opened from the internet, or when the certificate must cover more than one name.
Follow Renewal with win-acme.
Where the certificate is¶
With a certificate file, the webfront reads these two files when the service starts:
%ProgramData%\Lundalogik\LIME Pro Server\Web Server\certs\cert.pem
%ProgramData%\Lundalogik\LIME Pro Server\Web Server\certs\privkey.pem
cert.pem holds the certificate followed by its intermediate certificates. privkey.pem holds the private key without a password. A changed file is not picked up until the service is restarted.
With automatic certificates these files are not used. The webfront keeps its certificates in %ProgramData%\Lundalogik\LIME Pro Server\caddy\data.
The paths are different if another data folder was chosen at installation.
Replacing a certificate by hand¶
Use the certificate deployment tool instead of copying files into the folder. Run it from an elevated command prompt:
"%ProgramData%\Lundalogik\LIME Pro Server\Web Server\tools\deploy-certificate.cmd" -PfxFile C:\path\certificate.pfx -PfxPassword <password>
The tool checks the new certificate, restarts the webfront and verifies that the new certificate is served. If anything fails it puts the previous certificate back. It is described in Renewal with win-acme.
Upgrades¶
Choose Use existing certificate in the installer, or --certaction=existing on the command line. The certificate files are kept, and a server with automatic certificates keeps them.
On a server with automatic certificates, any other certificate option switches them off without a warning. See Upgrades and new installations.
The installer writes the webfront configuration file caddy\config\Caddyfile again at every upgrade, so do not point it at other certificate files by hand.