Allowing the export of CAs that don't have a chain. (#1000)

This commit is contained in:
kevgliss 2017-11-21 11:42:23 -08:00 committed by GitHub
parent cecfe47540
commit c2b2ce1f11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,6 +42,10 @@ def split_chain(chain):
:return:
"""
certs = []
if not chain:
return certs
lines = chain.split('\n')
cert = []