portable version of acme-client, a secure ACME client https://kristaps.bsd.lv/acme-client
kristaps e82c130dd9 Sync. 1 year ago
GNUmakefile Disable seccomp by default. 1 year ago
LICENSE.md 2 years ago
Linux-seccomp.md Just a quick edit to counter some people getting hung up. You were right on 1 year ago
README.md No longer supporting older OpenBSD. 1 year ago
acctproc.c Sync. 1 year ago
acme-client.1 Sync. 1 year ago
base64.c Sync. 2 years ago
certproc.c Sync. 1 year ago
chngproc.c Sync. 1 year ago
compat-setresgid.c setreuid et al are on Linux, too. 2 years ago
compat-setresuid.c setreuid et al are on Linux, too. 2 years ago
config.h Revert netproc chroot to being in use and use ca_mem instead of ca_file for 1 year ago
dbg.c Sync. 2 years ago
dnsproc.c Sync. 1 year ago
extern.h Sync. 1 year ago
fileproc.c Sync. 1 year ago
http.c Sync. 1 year ago
http.h Sync. 1 year ago
jsmn.c Sync. 2 years ago
jsmn.h Sync. 2 years ago
json.c Sync. 2 years ago
keyproc.c Sync. 1 year ago
main.c Sync. 1 year ago
netproc.c Sync. 1 year ago
revokeproc.c Sync. 1 year ago
rsa.c Sync. 1 year ago
rsa.h Sync. 1 year ago
sandbox-darwin.c Make up to date with sandbox interface. 2 years ago
sandbox-null.c Make up to date with sandbox interface. 2 years ago
sandbox-pledge.c Sync. 1 year ago
sandbox-seccomp.c Add fstat as noted in https://github.com/kristapsdz/acme-client-portable/issues/11 1 year ago
util-pledge.c Sync. 2 years ago
util-portable.c Revert netproc chroot to being in use and use ca_mem instead of ca_file for 1 year ago
util.c Sync. 1 year ago

README.md

Synopsis

acme-client-portable is yet another ACME client, specifically for Let's Encrypt, but one with a strong focus on security.

It was named letskencrypt-portable until version 0.1.11.

Please see kristaps.bsd.lv/acme-client for stable releases: this repository is for current development of the portable branch, which tracks acme-client with goop to allow compilation and secure operation on Linux, Mac OS X, NetBSD, and FreeBSD (hence "-portable"). You will need libressl on all systems and libbsd on Linux (except for musl libc systems like Alpine).

Linux has an experimental libseccomp sandbox, but you must enable it yourself. Details in Linux-seccomp.md.

This repository mirrors the master CVS repository: any source changes will occur on the master and be pushed periodically to GitHub. If you have bug reports or patches, either file them here or e-mail them to me. Feature requests will be ignored unless joined by a patch.

What are the difference between this and the non-portable release?

  • Conditional support for OpenBSD's sandbox, Mac OS X, or experimentally on Linux.
  • Proper preprocessor flags for unlocking some Linux functions.
  • Different library names on Linux.
  • Uses GNU make instead of BSD make.

This version tries its best to be secure, but some of its supported operating systems are hostile to security.

On both Linux and Mac OS X, for example, the DNS resolution process is effectively run in the main file-system and un-sandboxed due to the complexity of lookups (needing mDNSresponder in the latter case or a slew of mystery files in the former).

Moreover, while the sandbox on Mac OS X (which is deprecated?) exists, its behaviour is not well-documented and, morever, is weakened to co-exist with the file-system jail.

Feature requests will be ignored unless joined by a patch. If there's something you need, I'm happy to work with you to make it happen. If you really need it, I'm available for contract (contact me by e-mail).

Configuration

Since your system might not be one of the tested ones (FreeBSD, Linux, Linux with musl libc, etc.), you may need to tune some of the values in the GNUmakefile or config.h. Please tell me if you do so, so I can accommodate in future releases.

In the former, you can adjust system-specific compilation flags.

In the latter, you can set the NOBODY_USER value to be the name of an unprivileged user for privilege dropping. You can also set DEFAULT_CA_FILE for the location of the certificate file loaded by libtls. There's also PATH_VAR_EMPTY, which should be an empty directory into which we can create our jail.

License

Sources use the ISC (like OpenBSD) license. See the LICENSE.md file for details.

The jsmn.c and jsmn.h files use the MIT license. See https://github.com/zserge/jsmn for details.