Common plugin: export key to PKCS8, not OpenSSL.

This commit is contained in:
Jakub Warmuz
2015-07-18 13:00:05 +00:00
parent 61e19c9882
commit 7a79915f0c
+1 -1
View File
@@ -182,7 +182,7 @@ class Dvsni(object):
# Write out challenge key
key_pem = achall.key.key.private_bytes(
encoding=serialization.Encoding.PEM,
format=serialization.PrivateFormat.TraditionalOpenSSL,
format=serialization.PrivateFormat.PKCS8,
encryption_algorithm=serialization.NoEncryption())
with le_util.safe_open(key_path, 'wb', chmod=0o400) as key_file:
key_file.write(key_pem)