diff options
author | Jan Cholasta <jcholast@redhat.com> | 2017-02-17 11:25:17 +0100 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2017-03-13 16:02:16 +0100 |
commit | 98bb5397c535e5e1a6c5ade9f0fb918be1d282c3 (patch) | |
tree | cfdbbdafd6370e21eae0052d462511d82934ebb7 /ipalib | |
parent | 8295848bfec6f96410ab8383107fdaf565f02974 (diff) | |
download | freeipa-98bb5397c535e5e1a6c5ade9f0fb918be1d282c3.tar.gz freeipa-98bb5397c535e5e1a6c5ade9f0fb918be1d282c3.tar.xz freeipa-98bb5397c535e5e1a6c5ade9f0fb918be1d282c3.zip |
vault: cache the transport certificate on client
Cache the KRA transport certificate on disk (in ~/.cache/ipa) as well as
in memory.
https://fedorahosted.org/freeipa/ticket/6652
Reviewed-By: Martin Basti <mbasti@redhat.com>
Reviewed-By: Christian Heimes <cheimes@redhat.com>
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/constants.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ipalib/constants.py b/ipalib/constants.py index 5a26173d2..f8a194c1f 100644 --- a/ipalib/constants.py +++ b/ipalib/constants.py @@ -21,6 +21,8 @@ """ All constants centralised in one file. """ + +import os import socket from ipapython.dn import DN from ipapython.version import VERSION, API_VERSION @@ -299,3 +301,15 @@ TLS_VERSION_MINIMAL = "tls1.0" # high ciphers without RC4, MD5, TripleDES, pre-shared key # and secure remote password TLS_HIGH_CIPHERS = "HIGH:!aNULL:!eNULL:!MD5:!RC4:!3DES:!PSK:!SRP" + +# Use cache path +USER_CACHE_PATH = ( + os.environ.get('XDG_CACHE_HOME') or + os.path.join( + os.environ.get( + 'HOME', + os.path.expanduser('~') + ), + '.cache' + ) +) |