Correct permissions on files

This commit is contained in:
Ewoud Kohl van Wijngaarden
2016-02-23 14:09:07 +01:00
parent b1e3839323
commit 0db38e9d95
2 changed files with 2 additions and 3 deletions

View File

@@ -95,7 +95,7 @@ class Issue implements Command {
file_put_contents("{$path}/{$token}", $payload);
chown("{$path}/{$token}", $userInfo["uid"]);
chmod("{$path}/{$token}", 0660);
chmod("{$path}/{$token}", 0664);
yield $acme->selfVerify($domain, $token, $payload);
$this->logger->info("Successfully self-verified challenge.");

View File

@@ -70,8 +70,7 @@ class Register implements Command {
file_put_contents($pathPrivate, $keyPair->getPrivate());
file_put_contents($pathPublic, $keyPair->getPublic());
chmod($pathPrivate, 600);
chmod($pathPrivate, 600);
chmod($pathPrivate, 0600);
}
$acme = new AcmeService(new AcmeClient($server, $keyPair), $keyPair);