summaryrefslogtreecommitdiffstats
path: root/ipapython/certdb.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipapython/certdb.py')
-rw-r--r--ipapython/certdb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipapython/certdb.py b/ipapython/certdb.py
index d6de01100..704bae528 100644
--- a/ipapython/certdb.py
+++ b/ipapython/certdb.py
@@ -417,7 +417,7 @@ class NSSDatabase(object):
def export_pem_cert(self, nickname, location):
"""Export the given cert to PEM file in the given location"""
- cert = self.get_cert(nickname)
+ cert = self.get_cert(nickname, pem=True)
with open(location, "w+") as fd:
fd.write(cert)
os.chmod(location, 0o444)