Post

Replies

Boosts

Views

Activity

Reply to Can't create IOS_DISTRIBUTION certificate using AppStore Connect API. Error 409/ENTITY_ERROR.ATTRIBUTE.INVALID/Invalid Certificate
After a couple a days I found the issue. It was that I base64 encoded CSR file. Don't need to do it, this file is already contains BASE64 data in between-----BEGIN CERTIFICATE REQUEST----- ... BASE64 ENCODED DATA ... -----END CERTIFICATE REQUEST-----So the correct body is{ "data":{ "attributes":{ "certificateType":"IOS_DISTRIBUTION", "csrContent":"'$(cat private.csr)'" }, "type":"certificates" } }
Apr ’20