An ACME server implementation performing no validations
git clone https://git.8pit.net/acme-mock.git
1# acme-mock 2 3An [ACME][RFC 8555] server implementation performing no validations. 4 5## Motivation 6 7I make heavy use of ACME in [ansible][ansible homepage] playbooks. 8Occasionally, I test these playbooks in virtual machines. Unfortunately, 9these virtual machines are incapable of completing ACME challenges and10therefore don't receive any certificates from configured ACME servers.11Without these certificates many daemons will refuse to start causing12failures of ansible tasks. For this reason, I implemented a simple ACME13server which doesn't perform any validations and always signs the given14certificate signing requests.1516## Status1718Horrible hack, didn't read the RFC and only implemented the parts needed19to make [acme-tiny][acme-tiny github] work.2021## Usage2223This software has no external dependencies and can be installed using:2425 $ go get github.com/nmeum/acme-mock2627Since ACME requires HTTPS, a TLS certificate is needed. A bogus28certificate can be generated with `openssl`:2930 $ yes "" | openssl req -x509 -nodes -newkey rsa:4096 \31 -keyout key.pem -out cert.pem3233The generated TLS certificate and key need to be passed to `acme-mock`.34Additionally, the certificate needs to be added to the certificate store35of the virtual machine. Afterwards, the ACME client needs to be36configured to use the `acme-mock` directory. The URL of the directory37resource depends on the address parameter, it defaults to38`https://localhost/directory`. The certificate, used for processing39certificate signing requests, is generated on startup.4041## License4243This program is free software: you can redistribute it and/or modify it44under the terms of the GNU Affero General Public License as published by45the Free Software Foundation, either version 3 of the License, or (at46your option) any later version.4748This program is distributed in the hope that it will be useful, but49WITHOUT ANY WARRANTY; without even the implied warranty of50MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero51General Public License for more details.5253You should have received a copy of the GNU Affero General Public License54along with this program. If not, see <https://www.gnu.org/licenses/>.5556[RFC 8555]: https://tools.ietf.org/html/rfc855557[ansible homepage]: https://ansible.com/58[acme-tiny github]: https://github.com/diafygi/acme-tiny