Compare commits
6 Commits
v1.0.0-bet
...
v1.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
361a06ce26 | ||
|
|
74aa1b82fb | ||
|
|
b464b52a85 | ||
|
|
82c053fa02 | ||
|
|
5a8a6d471c | ||
|
|
1210f0b7fc |
@@ -4,8 +4,8 @@
|
||||
|
||||
## Requirements
|
||||
|
||||
* PHP 7+ with OpenSSL
|
||||
* Works on Unix and Windows
|
||||
* PHP 7.4+ with OpenSSL
|
||||
* Works on Unix-like systems and Windows
|
||||
|
||||
## Documentation
|
||||
|
||||
|
||||
@@ -14,14 +14,14 @@
|
||||
"php": ">=7.2",
|
||||
"ext-openssl": "*",
|
||||
"amphp/process": "^1.1",
|
||||
"amphp/parallel": "^v1.4",
|
||||
"kelunik/acme": "^1-dev",
|
||||
"amphp/parallel": "^1.4",
|
||||
"kelunik/acme": "^1",
|
||||
"kelunik/certificate": "^1",
|
||||
"league/climate": "^3.4",
|
||||
"rdlowrey/auryn": "^1.4.4",
|
||||
"webmozart/assert": "^1.3",
|
||||
"symfony/yaml": "^5.3.2",
|
||||
"amphp/log": "^1.0",
|
||||
"amphp/log": "^1",
|
||||
"ext-posix": "*"
|
||||
},
|
||||
"require-dev": {
|
||||
|
||||
489
composer.lock
generated
489
composer.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -6,7 +6,7 @@ This is the preferred installation method for usage on a production system. You
|
||||
|
||||
### Requirements
|
||||
|
||||
* PHP 5.5+
|
||||
* PHP 7.4+
|
||||
|
||||
### Instructions
|
||||
|
||||
@@ -50,7 +50,7 @@ If you plan to actively develop this client, you probably don't want the Phar bu
|
||||
|
||||
### Requirements
|
||||
|
||||
* PHP 5.5+
|
||||
* PHP 7.4+
|
||||
* [Composer](https://getcomposer.org/)
|
||||
|
||||
### Instructions
|
||||
|
||||
@@ -69,6 +69,8 @@ certificates:
|
||||
|
||||
All configuration keys are optional and can be passed as arguments directly (except for `certificates` when using `acme-client auto`).
|
||||
|
||||
Before you can issue certificates, you must create an account using `acme-client setup --agree-terms`.
|
||||
|
||||
## Certificate Issuance
|
||||
|
||||
You can use `acme-client auto` to issue certificates and renew them if necessary. It uses the configuration file to
|
||||
|
||||
@@ -32,14 +32,14 @@ class ChallengeStore
|
||||
}
|
||||
|
||||
if ($userInfo !== null) {
|
||||
yield File\changeOwner($this->docroot . '/.well-known', $userInfo['uid'], -1);
|
||||
yield File\changeOwner($this->docroot . '/.well-known/acme-challenge', $userInfo['uid'], -1);
|
||||
yield File\changeOwner($this->docroot . '/.well-known', $userInfo['uid']);
|
||||
yield File\changeOwner($this->docroot . '/.well-known/acme-challenge', $userInfo['uid']);
|
||||
}
|
||||
|
||||
yield File\write("{$path}/{$token}", $payload);
|
||||
|
||||
if ($userInfo !== null) {
|
||||
yield File\changeOwner("{$path}/{$token}", $userInfo['uid'], -1);
|
||||
yield File\changeOwner("{$path}/{$token}", $userInfo['uid']);
|
||||
}
|
||||
|
||||
yield File\changePermissions("{$path}/{$token}", 0644);
|
||||
|
||||
@@ -49,7 +49,7 @@ class KeyStore
|
||||
|
||||
yield File\createDirectoryRecursively($dir, 0755);
|
||||
yield File\write($file, $key->toPem());
|
||||
yield File\changeOwner($file, 0600);
|
||||
yield File\changePermissions($file, 0600);
|
||||
} catch (FilesystemException $e) {
|
||||
throw new KeyStoreException('Could not save key: ' . $e->getMessage(), 0, $e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user