diff --git a/fir_ser/api/utils/app/iossignapi.py b/fir_ser/api/utils/app/iossignapi.py index bdbdc0c..31a5c3e 100644 --- a/fir_ser/api/utils/app/iossignapi.py +++ b/fir_ser/api/utils/app/iossignapi.py @@ -207,6 +207,8 @@ class AppDeveloperApiV2(object): try: apple_obj = AppStoreConnectApi(self.issuer_id, self.private_key_id, self.p8key) certificates = apple_obj.get_all_certificates() + if not isinstance(certificates, list): + certificates = [certificates] result['data'] = certificates logger.info(f"ios developer active result:{certificates}") if len(certificates) >= 0: @@ -285,6 +287,8 @@ class AppDeveloperApiV2(object): not_after = datetime.datetime.strptime(cer.get_notAfter().decode('utf-8'), "%Y%m%d%H%M%SZ") apple_obj = AppStoreConnectApi(self.issuer_id, self.private_key_id, self.p8key) certificates = apple_obj.get_all_certificates() + if not isinstance(certificates, list): + certificates = [certificates] for cert_obj in certificates: f_date = format_apple_date(cert_obj.expirationDate) logger.info(f"{cert_obj.id}-{not_after.timestamp()} - {f_date.timestamp()} ")