all: Bump after lang/go123 update9ac7419a49
Port details
security/lego 5.5.2_2
Let's Encrypt client and ACME library written in Go
Port info
- Maintainer
- matt@matthoran.com
- Packages
- latest: 5.5.2_2
- Upstream
- up to date
- Last update
- to 5.5.2_2 · d81b7ba3c3
- Quarterly
- 2026Q4: 5.5.2_2 · last MFH 60647eff54
- WWW
- https://github.com/go-acme/lego
- Links
- cgit · VuXML
Install
- Package
# pkg install legoinstalls 5.5.2_2 fromlatest; fromquarterly(2026Q4) 5.5.2_2- Port
# cd /usr/ports/security/lego && make install clean- Size
- 15 MiB download · 65 MiB installed
- Depends on
- security/ca_root_nss 3.132
- License
- MIT
- Creates
- user
_lego, group_lego,www - pkg-message
Shown after installing
There are sample scripts in /usr/local/etc/lego that you can use for renewing and deploying certificates. In order to run the script regularly to update the certificates add this line to /etc/periodic.conf: weekly_lego_enable="YES" Additionally the following parameters may be added to /etc/periodic.conf: Script to run to renew certificates, will be run as _lego (required) weekly_lego_renewscript="/usr/local/etc/lego/lego.sh" To run a script after the renewal to deploy certificates weekly_lego_deployscript="/usr/local/etc/lego/deploy.sh" Note that the deploy script is provided as a sample and may need to be modified for your environment. The script will attempt to deploy certificates to /usr/local/etc/ssl/certs and private keys to /usr/local/etc/ssl/private. The script also tries to restart nginx. If using the sample renew script, lego will load its configuration from /usr/local/etc/lego/lego.yml. See https://go-acme.github.io/lego/references/ref-file/index.html for more details. To run lego for the first time, configure an account and certificate in /usr/local/etc/lego/lego.yml. Then execute lego as the _lego user: $ lego --config /usr/local/etc/lego/lego.ymlShown after upgrading
To migrate from lego v4 to v5 run $ lego migrate --path /usr/local/etc/ssl/lego as the _lego user. This command migrates to a new file structure and outputs configuration that can be used as the basis for /usr/local/etc/lego/lego.yml. See https://go-acme.github.io/lego/references/ref-file/index.html for more details on the configuration file format. /usr/local/etc/lego/lego.sh will need to be updated as well, as the renew command has been removed. The script can also be simplified when a configuration file is used. See /usr/local/etc/lego/lego.sh.sample for an example.
Packages by version and architecture
latest
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 16 | 5.5.2_2 | 5.5.2_1 | – |
| FreeBSD 15 | 5.5.2_2 | 5.5.2_1 | – |
| FreeBSD 14 | 5.5.2_2 | 5.5.2_1 | 5.5.2_2 |
quarterly (2026Q4)
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 15 | 5.5.2_2 | 5.5.2_1 | – |
| FreeBSD 14 | 5.5.2_2 | 5.5.2_1 | 5.5.2_2 |
version as in the ports tree (latest) or the most common one (quarterly) · different version · ✗ not built · – no packages for this platform. Package sets that have not been rebuilt for 60 days are left out.
Unaddressed and VuXML only (0)
No unaddressed CVE and nothing reported by
pkg audit for the packaged version 5.5.2_2.Fixed (0)
No VuXML entries for this package.
Problem reports (0) · open in Bugzilla, most recently changed first
None.
Commits (118)
security/lego: update to 4.19.1 Changelog: https://github.com/go-acme/lego/blob/master/CHANGELOG.md#v4191---2024-10-06 PR: 28190769b6794950
security/lego: Update to 4.18.0 Changelog: https://github.com/go-acme/lego/blob/master/CHANGELOG.md#v4180---2024-08-30 PR: 281170ac4375a9de
all: Bump after lang/go122 updateaeb0113515
all: Bump after lang/go122 updatef36b85a91c
security/lego: Update to 4.17.4 Changelog: https://github.com/go-acme/lego/blob/master/CHANGELOG.md#v4174---2024-06-12 PR: 279818 Approved by: tcberner (mentor, implicit)a329465fc1
all: Bump after lang/go122 update MFH: 2024Q2b24868e7be
security/lego: Update to 4.17.3 changeLog: https://github.com/go-acme/lego/blob/master/CHANGELOG.md#v4173---2024-05-28 PR: 279375 Approved by: submitter is maintainerdb856da95f
all: Bump after lang/go121 update MFH: 2024Q2fce0cc3272
all: Bump after lang/go121 update MFH: 2024Q232b284679a
security/lego: Update to 4.16.1 Changelog: https://github.com/go-acme/lego/blob/master/CHANGELOG.md#v4161---2024-03-10 PR: 2777219289a4bfe6
all: Bump PORTREVISION after lang/go* update PR: 2765307e5aa2085f
security/lego: Update to 4.15.0 Changelog: https://github.com/go-acme/lego/blob/master/CHANGELOG.md#v4150---2024-01-28 PR: 276899fee0a19718
all: Bump PORTREVISION after lang/go* update PR: 2744050505b712df
security/lego: update to 4.14.4 Changelog: https://github.com/go-acme/lego/blob/master/CHANGELOG.md#v4141---2023-09-20 PR: 273974815ade2bb2
all: Bump PORTREVISION after lang/go* update8e4bc57934
security/lego: Update to 4.14.0 PR: 273384 Changes: https://github.com/go-acme/lego/blob/master/CHANGELOG.md#v4140---2023-08-20e227b4deb6
all: Bump PORTREVISION after lang/go{119,120} update09b993031asecurity/lego: Update to 4.13.3 Changelog: https://github.com/go-acme/lego/blob/master/CHANGELOG.md#v4133---2023-07-25 PR: 272665e63ad897be
security/lego: Update to 4.12.1 Changelog: https://github.com/go-acme/lego/blob/master/CHANGELOG.md#v4121---2023-06-06 PR: 27195770fd9dfd1c
security/lego: update to 4.12.0 Changelog: https://github.com/go-acme/lego/blob/master/CHANGELOG.md#v4120---2023-05-28 PR: 27180687a8053dbf
security/lego: Update to 4.11.0 Changelog: https://github.com/go-acme/lego/blob/master/CHANGELOG.md#v4110---2023-05-02 PR: 271279ea1a2cf61c
all: Bump PORTREVISION after lang/go{119,120} updateff40d94c1dall: Bump PORTREVISION after Go ports update09079730e9
security/lego: Update to 4.10.2 ChangeLog: https://github.com/go-acme/lego/blob/master/CHANGELOG.md#v4102---2023-02-26 * Fix Docker image builds. * Fix CNAME support * Fix subdomain support PR: 269867 Reported by: matt@matthoran.com (maintainer)470aaa77c1
all: Bump PORTREVISION after lang/go{119,120} update56b5ec772fsecurity/lego: Update to 4.10.0 Changelog: https://github.com/go-acme/lego/blob/master/CHANGELOG.md#v4100---2023-02-10 PR: 269495274ca7ad6d
all: Bump PORTREVISION after GO_DEFAULT update.2297efc51b
all: Bump PORTVERSION after lang/go{118,119} update3b383d833aall: Bump PORTREVISION after lang/go{118,119} updated9ad1002d5security/lego: Update to 4.9.1 PR: 268004 Changes: https://github.com/go-acme/lego/blob/master/CHANGELOG.md#v491---2022-11-259c424418c3
all: Bump PORTREVISION after lang/go{118,119} updatebde51869eesecurity/lego: Update to 4.9.0 ChangeLog: https://github.com/go-acme/lego/blob/master/CHANGELOG.md#v490---2022-10-03 Added: * Add DNS provider for CIVO * Add DNS provider for VK Cloud * Add DNS provider for YandexCloud * digitalocean: configurable base URL * loopia: add configurable API endpoint * pdns: notify secondary servers after updates Changed: * allinkl: removed deprecated sha1 hashing * auroradns: update authentification * dnspod: deprecated. Use Tencent Cloud instead. * exoscale: migrate to API v2 endpoints * gcloud: update golang.org/x/oauth2 * lightsail: cleanup * sakuracloud: update api client library * take out CNAME support from experimental features * add recursive CNAME lookup support * Remove embedded issuer certificates from issued certificate if bundle is false Fixed: * luadns: fix cname support * njalla: fix record id unmarshal error * tencentcloud: fix subdomain error PR: 266807 Reported by: matt@matthoran.com (maintainer)c4e07980c8
all: Bump PORTREVISION after lang/go{118,119} updatef05c98fffbRemove WWW entries moved into port Makefiles Commit b7f05445c00f has added WWW entries to port Makefiles based on WWW: lines in pkg-descr files. This commit removes the WWW: lines of moved-over URLs from these pkg-descr files. Approved by: portmgr (tcberner)fb16dfecae
Add WWW entries to port Makefiles It has been common practice to have one or more URLs at the end of the ports' pkg-descr files, one per line and prefixed with "WWW:". These URLs should point at a project website or other relevant resources. Access to these URLs required processing of the pkg-descr files, and they have often become stale over time. If more than one such URL was present in a pkg-descr file, only the first one was tarnsfered into the port INDEX, but for many ports only the last line did contain the port specific URL to further information. There have been several proposals to make a project URL available as a macro in the ports' Makefiles, over time. This commit implements such a proposal and moves one of the WWW: entries of each pkg-descr file into the respective port's Makefile. A heuristic attempts to identify the most relevant URL in case there is more than one WWW: entry in some pkg-descr file. URLs that are not moved into the Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr files in order to preserve them. There are 1256 ports that had no WWW: entries in pkg-descr files. These ports will not be touched in this commit. The portlint port has been adjusted to expect a WWW entry in each port Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as deprecated. Approved by: portmgr (tcberner)b7f05445c0
all: Bump PORTREVISION after Go update Bump Go ports PORTREVISION after GO_DEFAULT and lang/go118 update.4476f89764
all: Bump PORTREVISION after lang/go{117,118} update153cb65ac8security/lego: Update to 4.8.0 - switch to GO_MODULE ChangeLog: https://github.com/go-acme/lego/blob/master/CHANGELOG.md#v480---2022-06-30 PR: 2650169da465ca0f
*/*: Bump port revisons after lang/go{117,118} update309cdeccd8security/lego: Update to 4.7.0 Changes: https://github.com/go-acme/lego/blob/master/CHANGELOG.md#v470---2022-05-27 PR: 264351c03f87ac51
*/*: Bump PORTREVISION after lang/go 1.18 updated690b5102f
security/lego: Update to 4.6.0 Changelog: https://github.com/go-acme/lego/blob/master/CHANGELOG.md#v460---2022-01-18 PR: 261389d3b4dae196
security/lego: Update to 4.5.3 Changelog: https://github.com/go-acme/lego/blob/master/CHANGELOG.md#v453---2021-09-06 PR: 259031c7dae1809a
security/lego: Update to 4.5.2 Changelog: https://github.com/go-acme/lego/blob/master/CHANGELOG.md#v452---2021-09-01 PR: 258844 Approved by: arrowd (mentor) Differential Revision: https://reviews.freebsd.org/D3233195c13b71e3
security/lego: Update to 4.4.0 Changes: https://github.com/go-acme/lego/blob/master/CHANGELOG.md#v440---2021-06-08 PR: 256517 Approved by: lwhsu (mentor, implicit)711587f77b
One more small cleanup, forgotten yesterday. Reported by: lwhsucf118ccf87
Remove # $FreeBSD$ from Makefiles.305f148f48
security/lego: Update to 4.3.1 Changes: https://github.com/go-acme/lego/blob/master/CHANGELOG.md#v431---2021-03-12 PR: 254228 Submitted by: Matthew Horan <matt@matthoran.com> (maintainer) Approved by: fernape (mentor) Differential Revision: https://reviews.freebsd.org/D29241afba33982e
security/lego: Update to 4.2.0 Changes: https://github.com/go-acme/lego/blob/master/CHANGELOG.md#v420---2021-01-24 PR: 253001 Submitted by: Matthew Horan <matt@matthoran.com> (maintainer)bfa220e4b0