aboutsummaryrefslogtreecommitdiff
path: root/scripts/testroot.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/testroot.py')
-rwxr-xr-xscripts/testroot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/testroot.py b/scripts/testroot.py
index 9d733d7a..e42b4aab 100755
--- a/scripts/testroot.py
+++ b/scripts/testroot.py
@@ -35,8 +35,8 @@ def set_subject_cert(cert):
def stash_subject_pkcs10(pkcs10):
if rpki_pkcs10_filename:
- f = open(rpki_pkcs10_filename, "w")
- f.write(pkcs10.get_PEM())
+ f = open(rpki_pkcs10_filename, "wb")
+ f.write(pkcs10.get_DER())
f.close()
def compose_response(r_msg):