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)