fix some bugs

super_sign_new
nineven 4 years ago
parent a2d0bdd3b0
commit a39f7348b3
  1. 2
      fir_ser/api/utils/app/iossignapi.py
  2. 2
      fir_ser/api/utils/apple/appleapiv3.py

@ -167,7 +167,7 @@ class AppDeveloperApiV2(object):
req.get_subject().C = 'CN' req.get_subject().C = 'CN'
req.get_subject().emailAddress = 'fly@fly.com' req.get_subject().emailAddress = 'fly@fly.com'
req.set_pubkey(key) req.set_pubkey(key)
req.sign(key, b'sha256') req.sign(key, 'sha256')
csr_content = dump_certificate_request(FILETYPE_PEM, req) csr_content = dump_certificate_request(FILETYPE_PEM, req)
with open(csr_file_path, 'wb+') as f: with open(csr_file_path, 'wb+') as f:
f.write(csr_content) f.write(csr_content)

@ -787,6 +787,6 @@ class AppStoreConnectApi(DevicesAPI, BundleIDsAPI, BundleIDsCapabilityAPI, Profi
def create_certificate(self, csr_content, certificate_type='IOS_DISTRIBUTION'): def create_certificate(self, csr_content, certificate_type='IOS_DISTRIBUTION'):
req = super().create_certificate(csr_content,certificate_type) req = super().create_certificate(csr_content,certificate_type)
if req.status_code == 201: if req.status_code == 201:
self.__certificates_store(req, 201) return self.__certificates_store(req, 201)
raise KeyError(req.text) raise KeyError(req.text)

Loading…
Cancel
Save