Uploading iOS certificate/provisioning profile returns 500

When I try to upload a valid iOS certificate in iOS settings, I get a 500 response.

Yesterday it did work. Today I added a new device and tried to reupload the provisioning profile, but it always returns a 500. Then I tried to remove the profile and certificate, generated a new csr.

Nothing worked.