summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gemato/openpgp.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/gemato/openpgp.py b/gemato/openpgp.py
index 0623e58..aadc9e5 100644
--- a/gemato/openpgp.py
+++ b/gemato/openpgp.py
@@ -4,6 +4,7 @@
# Licensed under the terms of 2-clause BSD license
import errno
+import os.path
import shutil
import subprocess
import tempfile
@@ -56,6 +57,13 @@ class OpenPGPEnvironment(object):
self._home = tempfile.mkdtemp()
self._impl = None
+ with open(os.path.join(self._home, 'gpg-agent.conf'), 'w') as f:
+ f.write('''# autogenerated by gemato
+
+# avoid any smartcard operations, we are running in isolation
+disable-scdaemon
+''')
+
def __enter__(self):
return self