Correct permissions on files
This commit is contained in:
@@ -95,7 +95,7 @@ class Issue implements Command {
|
|||||||
|
|
||||||
file_put_contents("{$path}/{$token}", $payload);
|
file_put_contents("{$path}/{$token}", $payload);
|
||||||
chown("{$path}/{$token}", $userInfo["uid"]);
|
chown("{$path}/{$token}", $userInfo["uid"]);
|
||||||
chmod("{$path}/{$token}", 0660);
|
chmod("{$path}/{$token}", 0664);
|
||||||
|
|
||||||
yield $acme->selfVerify($domain, $token, $payload);
|
yield $acme->selfVerify($domain, $token, $payload);
|
||||||
$this->logger->info("Successfully self-verified challenge.");
|
$this->logger->info("Successfully self-verified challenge.");
|
||||||
|
|||||||
@@ -70,8 +70,7 @@ class Register implements Command {
|
|||||||
file_put_contents($pathPrivate, $keyPair->getPrivate());
|
file_put_contents($pathPrivate, $keyPair->getPrivate());
|
||||||
file_put_contents($pathPublic, $keyPair->getPublic());
|
file_put_contents($pathPublic, $keyPair->getPublic());
|
||||||
|
|
||||||
chmod($pathPrivate, 600);
|
chmod($pathPrivate, 0600);
|
||||||
chmod($pathPrivate, 600);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$acme = new AcmeService(new AcmeClient($server, $keyPair), $keyPair);
|
$acme = new AcmeService(new AcmeClient($server, $keyPair), $keyPair);
|
||||||
|
|||||||
Reference in New Issue
Block a user