Skip to content

Commit

Permalink
Add certainty configuration guidance.
Browse files Browse the repository at this point in the history
  • Loading branch information
paragonie-security committed Dec 16, 2018
1 parent 900e3cc commit 6992d8f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion data/config.json
Expand Up @@ -5,7 +5,8 @@
"core-vendor-manage-keys-allow": false,
"core-vendor-manage-keys-auto": false,
"minimal-history": true,
"quorum": 0
"quorum": 0,
"tls-cert-dir": ""
},
"remotes": []
}
5 changes: 5 additions & 0 deletions doc/config.md
Expand Up @@ -137,3 +137,8 @@ properties:
* `primary` (bool) indicates whether or not this is the primary source.
Herd prioritizes secondary sources to minimize network usage (especially for
the primary Chronicle).

### `tls-cert-dir`

Directory which stores the CA-Cert.pem files, provided by
[Certainty](https://github.com/paragonie/certainty).
2 changes: 1 addition & 1 deletion src/Config.php
Expand Up @@ -148,7 +148,7 @@ public static function fromFile(string $path = ''): self
}
}

if (isset($policies['tls-cert-dir'])) {
if (!empty($policies['tls-cert-dir'])) {
$config->tlsCertDir = (string) $policies['tls-cert-dir'];
} else {
$config->tlsCertDir = \dirname(__DIR__) . '/data/certs';
Expand Down

0 comments on commit 6992d8f

Please sign in to comment.