Let's Encrypt client in PHP
le-client is a Let's Encrypt service client, (*1)
Usage
composer dumpautoload, (*2)
First time
-
Make account's key, (*3)
php bin/le.php make_key data/private.key, (*4)
-
Register account, (*5)
php bin/le.php reg_account data/private.key, (*6)
-
Make challenge, (*7)
php bin/le.php make_challenge data/private.key example.com, (*8)
-
Put domain confirmation details to web server, (*9)
-
Challnge domain confirmation, (*10)
php bin/le.php challenge data/private.key uri token file location, (*11)
-
Make domain's key, (*12)
php bin/le.php make_key data/domain.key, (*13)
-
Make cert, (*14)
php bin/le.php make_cert data/domain.key example.com data/private.key, (*15)
Prolongation
php bin/le.php prolongate config.php example.com, (*16)
Will do automatically the following:
1. Make challenge
2. Put domain confirmation details to web server
3. Challenge domain confirmation
4. Make new domain key
5. Make cert, (*17)
Check cert exipration
echo | openssl s_client -servername NAME -connect HOST:PORT 2>/dev/null | openssl x509 -noout -dates, (*18)