Download the PHP package rogierw/letsencrypt-client without Composer
On this page you can find all versions of the php package rogierw/letsencrypt-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rogierw/letsencrypt-client
More information about rogierw/letsencrypt-client
Files in rogierw/letsencrypt-client
Package letsencrypt-client
Short Description LetsEncrypt client library for ACME v2 written in PHP.
License MIT
Homepage https://github.com/RogierW/rw-acme-client
Informations about the package letsencrypt-client
Let’s Encrypt ACME client written in PHP
This library allows you to request, renew and revoke SSL certificates provided by Let's Encrypt.
If you're looking for an easy-to-use CLI tool for managing your LE certificates, take a look at the RW ACME CLI project.
Requirements
- PHP ^8.2
- OpenSSL >= 1.0.1
- cURL extension
- JSON extension
Notes:
- It's recommended to have dig installed on your system, as it will be used to fetch DNS information.
- v4 of this package only supports
php:^8.2
. If you're looking for the older versions, check out v1 or v3.
Installation
You can install the package via composer:
composer require rogierw/rw-acme-client
Usage
Create an instance of Rogierw\RwAcme\Api
client and provide it with a local account that will be used to store the account keys.
You could also create a client and pass the local account data later:
Please note that setting a local account is required before making any of the calls detailed below.
Creating an account
Difference between account
and localAccount
account
is the account created at the ACME (Let's Encrypt) server with data from thelocalAccount
.localAccount
handles the private/public key pair and contact email address used to sign requests to the ACME server. Depending on the implementation, this data is stored locally or, for example, in a database.
Creating an order
Renewal
Simply create a new order to renew an existing certificate as described above. Ensure that you use the same account as you did for the initial request.
Getting an order
Domain validation
Getting the DCV status
http-01
Get the name and content for the validation file:
This returns an array:
The Let's Encrypt validation server will make a request to the following URL:
dns-01
Get the name and the value for the TXT record:
This returns an array:
Start domain validation
http-01
dns-01
Generating a CSR
Finalizing order
Getting the actual certificate
Revoke a certificate
All versions of letsencrypt-client with dependencies
ext-curl Version *
ext-json Version *
ext-mbstring Version *
ext-openssl Version *
psr/log Version ^3.0
spatie/dns Version ^2.5
spatie/laravel-data Version ^3.9