Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Acme PHP - Installation

ACME PHP is a tool that makes it easy to generate SSL certificates from the CLI, rather than having to using your web browser.

This tutorial is the first in a series for using the tool. This post will step you through installation.

Steps

Create a directory wherever you want to install the tool. Navigate to within there and run:

wget https://github.com/acmephp/acmephp/releases/download/1.0.1/acmephp.phar
wget https://github.com/acmephp/acmephp/releases/download/1.0.1/acmephp.phar.pubkey

To test that everything went successfully, run:

php acmephp.phar --version

... which should output:

Acme PHP - Let's Encrypt client 1.0.0-beta4

All future calls to php acmephp.phar will need to be run from within this directory.

Setting Up An Alias

To prevent myself from having to go to that directory and typing php acmephp.phar every time, I set up an alias in my .bashrc file as shown below:

alias acmephp="$CMDS_DIR/acmephp/acmephp.phar"

Now I can just use the acmephp command from the CLI from any folder. Obviously your folder path needs to reflect where you stuck downloaded the files to.

Displaying Help

If you ever need help with this tool use the commands:

php acmephp.phar

... or:

php acmephp.phar --help

I find the first one more helpful.

Conclusion

Now that we have installed the tool, we need start off by using it to register with LetsEncrypt.

References

Last updated: 20th May 2020
First published: 16th August 2018

This blog is created by Stuart Page

I'm a freelance web developer and technology consultant based in Surrey, UK, with over 10 years experience in web development, DevOps, Linux Administration, and IT solutions.

Need support with your infrastructure or web services?

Get in touch