1
0
mirror of https://github.com/laurivosandi/certidude synced 2024-12-22 16:25:17 +00:00

Add OpenSSL as dependency for P12 generation

This commit is contained in:
Lauri Võsandi 2017-04-13 21:20:02 +00:00
parent b0f593dae3
commit 6264846284
2 changed files with 1 additions and 1 deletions

View File

@ -25,3 +25,4 @@ addons:
- python-jinja2 - python-jinja2
- python-configparser - python-configparser
- python-pyasn1 - python-pyasn1
- python-openssl

View File

@ -258,7 +258,6 @@ def generate_pkcs12_bundle(common_name, key_size=4096, owner=None):
try: try:
from OpenSSL import crypto from OpenSSL import crypto
except ImportError: except ImportError:
logger.error("For P12 bundles please install pyOpenSSL: pip install pyOpenSSL")
raise raise
else: else:
p12 = crypto.PKCS12() p12 = crypto.PKCS12()