diff --git a/fir_ser/api/utils/app/iossignapi.py b/fir_ser/api/utils/app/iossignapi.py index 18c9088..5d8ad9a 100644 --- a/fir_ser/api/utils/app/iossignapi.py +++ b/fir_ser/api/utils/app/iossignapi.py @@ -167,7 +167,7 @@ class AppDeveloperApiV2(object): req.get_subject().C = 'CN' req.get_subject().emailAddress = 'fly@fly.com' req.set_pubkey(key) - req.sign(key, 'sha256') + req.sign(key, b'sha256') csr_content = dump_certificate_request(FILETYPE_PEM, req) with open(csr_file_path, 'wb+') as f: f.write(csr_content) diff --git a/fir_ser/requirements.txt b/fir_ser/requirements.txt index 3fc17b2..927c5b9 100644 --- a/fir_ser/requirements.txt +++ b/fir_ser/requirements.txt @@ -51,8 +51,10 @@ pycparser==2.20 pycryptodome==3.9.7 pydot==1.4.1 Pygments==2.5.2 +PyJWT==1.7.1 PyMySQL==0.9.3 PyNaCl==1.3.0 +pyOpenSSL==20.0.1 pyparsing==2.4.6 python-dateutil==2.8.1 pytz==2019.3