Rewrite of acme-tiny in Perl
This repository has been archived on 2020-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Přemysl Eric Janouch 8f74c3acf0
README.adoc: fix libasciidoc compatibility
2020-10-25 10:08:46 +01:00
LICENSE Name change 2020-09-28 05:13:10 +02:00
README.adoc README.adoc: fix libasciidoc compatibility 2020-10-25 10:08:46 +01:00 Support HTTP/2 responses 2019-10-02 23:56:30 +02:00



acme-tinier is a simplified rewrite of acme-tiny in Perl, since Python 3 wanted to take 125 MiB of space on my machine while Perl is practically everywhere and the JSON::PP package seems to be present in most of its default installations.

It is not likely to work with any other provider than Lets Encrypt, as the ACME protocol hasnt been finalised yet and there have been plenty of changes to it already.


The following is a minimal script to generate a key and a corresponding certificate using Lets Encrypt, assuming that a web server is properly set up to serve the ACME_DIR and the user running this, which should in no way be the root user, can place files in there:

#!/bin/sh -ex
[ -f account.key ] || openssl genrsa 4096 > account.key
[ -f intermediate.pem ] || curl -o intermediate.pem \

[ -f $DOMAIN.key ] || openssl genrsa 4096 > $DOMAIN.key
openssl req -new -sha256 -key $DOMAIN.key -nodes \
	-subj "/CN=$DOMAIN/" > $DOMAIN.csr

ACME_DIR=/srv/http/acme-challenge \
ACCOUNT_KEY=account.key \
ACME_CA='' \
./ $DOMAIN.csr > $DOMAIN.crt
cat intermediate.pem >> $DOMAIN.crt

The Perl script itself is under 200 hundred lines of code, which is also the upper limit for development, and you are advised to study it before use.

Contributing and Support

Use to report any bugs, request features, or submit pull requests. git send-email is tolerated. If you want to discuss the project, feel free to join me at ircs://, channel #dev.

Bitcoin donations are accepted at: 12r5uEWEgcHC46xd64tt3hHt9EUvYYDHe9


This software is released under the terms of the 0BSD license, the text of which is included within the package along with the list of authors.