LetsEncrypt library wrapper.

PHP LetsEncrypt client library integration.

https://github.com/yourivw/LEClient

PHP LetsEncrypt client library for ACME v2. The aim of this client is to make an easy-to-use and integrated solution to create a LetsEncrypt-issued SSL/TLS certificate with PHP. The user has to have access to the web server or DNS management to be able to verify the domain is accessible/owned by the user.

Settings/demo: /admin/config/system/letsencrypt

CODE:

$domain = "example.org";
\Drupal::service('letsencrypt')->sign($domain);
\Drupal::service('letsencrypt')->read($domain);

Other CODE examples available in README.md
* Custom callback
* Wildcard SSL with DNS callback and AWS Route53

Project information

Releases