We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f51f797 + 3a845b2 commit 7618887Copy full SHA for 7618887
orchard/models/host.py
@@ -27,7 +27,11 @@ def _keys_path(self):
27
return os.path.expanduser('~/.orchard/host-keys')
28
29
def _host_ca_path(self):
30
- return os.path.abspath(os.path.join(os.path.dirname(__file__), '../certs/host-ca.pem'))
+ host_ca_path = os.environ.get(
31
+ 'ORCHARD_HOST_CA',
32
+ os.path.join(os.path.dirname(__file__), '../certs/host-ca.pem')
33
+ )
34
+ return os.path.abspath(host_ca_path)
35
36
def _client_key_path(self):
37
return os.path.join(self._keys_path(), '%s.key' % self.id)
0 commit comments