From a39f7348b33932949449889a34db274dc416da5d Mon Sep 17 00:00:00 2001 From: nineven Date: Sun, 31 Jan 2021 13:25:19 +0800 Subject: [PATCH] fix some bugs --- fir_ser/api/utils/app/iossignapi.py | 2 +- fir_ser/api/utils/apple/appleapiv3.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fir_ser/api/utils/app/iossignapi.py b/fir_ser/api/utils/app/iossignapi.py index 5d8ad9a..18c9088 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, b'sha256') + req.sign(key, '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/api/utils/apple/appleapiv3.py b/fir_ser/api/utils/apple/appleapiv3.py index c1a2682..fc25a92 100644 --- a/fir_ser/api/utils/apple/appleapiv3.py +++ b/fir_ser/api/utils/apple/appleapiv3.py @@ -787,6 +787,6 @@ class AppStoreConnectApi(DevicesAPI, BundleIDsAPI, BundleIDsCapabilityAPI, Profi def create_certificate(self, csr_content, certificate_type='IOS_DISTRIBUTION'): req = super().create_certificate(csr_content,certificate_type) if req.status_code == 201: - self.__certificates_store(req, 201) + return self.__certificates_store(req, 201) raise KeyError(req.text)