BSD Ports

security/lego 5.5.2_2 FreeBSD

Let's Encrypt client and ACME library written in Go

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
d81b7ba3c3
License
MIT
Categories
security
Package size
13910.3 KiB, 60665.8 KiB installed

Description

lego is a client for Let's Encrypt users, written in Go. It has support for a number of ACME challenges, and no external dependencies.

In the other systems

SystemPortVersion
FreeBSDsecurity/lego5.5.2_2
OpenBSDsecurity/lego4.35.2
DragonFlysecurity/lego4.22.2_2

Install

Binary package:

pkg install lego

From the ports tree:

cd /usr/ports/security/lego/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	lego>0:security/lego

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest5.5.2_15.5.2_1-4.25.25.5.2_1
FreeBSD:14:quarterly5.5.2_15.5.2_1n/a4.23.15.5.2_1
FreeBSD:15:latest5.5.2_15.5.2_1n/a-4.25.2
FreeBSD:15:quarterly5.5.2_15.5.2_1n/an/an/a
FreeBSD:16:latest5.5.25.5.2_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Runtime 1

The full lists below include those, and their dependencies in turn.

Build dependencies 1
Run dependencies 1

No port depends on this one.

Configuration

No options to configure.

USES
go:modules
Service scripts
none

Message 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.yml

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.

Files

pkg-plist 9
  • bin/lego
  • @dir(,,0700) etc/lego
  • @dir(,,0755) etc/ssl
  • @dir(,,0755) etc/ssl/lego
  • @dir(,www,) www/lego
  • @sample etc/lego/deploy.sh.sample
  • @sample(,,0700) etc/lego/lego.sh.sample
  • @sample(,,0600) etc/lego/lego.yml.sample
  • etc/periodic/weekly/604.lego
distinfo 2
FileSizeSHA256
go/security_lego/lego-v5.5.2/v5.5.2.mod10625bbad4d92aeeb16cdb801adf72fab44bc4ddeac7534a9a0295c66c301ab05519c
go/security_lego/lego-v5.5.2/v5.5.2.zip2.467252e+065af4155c8716f1e9abc5b8d641502cab9ddc548742bd7db5ecfac7bfb85d1273

Commit history 12

DateCommitCreditsLog message
d81b7ba3c3 Dag-Erling Smørgrav various: Bump Go ports for Go 1.26.10 / 1.27.3
031fc6bfbf Dag-Erling Smørgrav various: Bump Go ports
3351eb189f Matthew Horan security/lego: Update to 5.5.2
Changelog: https://github.com/go-acme/lego/releases/tag/v5.5.2 PR: 298892
f2fc7427f3 Matthew Horan security/lego: Update to 5.5.1
Changelog: https://github.com/go-acme/lego/releases/tag/v5.5.1
114198b2bc Matthew Horan security/lego: Update 5.4.0 => 5.4.1
Changelog: https://github.com/go-acme/lego/blob/v5.4.1/CHANGELOG.md PR: 298212 Approved by: osa, vvd (Mentors, implicit)

The latest 5 of 12 in the history this site was built from.