Signing failed: Invalid file.

0

I'm getting the error "Signing failed: Invalid file" when I try to sign a file with AWS Signer. I am sure that the file exists and that I have access to it. I cannot find any explanation for this error. For what reasons would a file be considered "Invalid"?

  • Do I need some kind of code signing certificate that I cannot make in AWS? If so, where do I get this certificate and what do I need to request?

2 Answers
1

AWS Signer supports specific file formats for signing. Be sure your file is in zip format (console).

profile picture
EXPERT
answered a month ago
  • I can sign a zip file, but that doesn't do me any good. I am trying to install a firmware update. The device doesn't know how to unpack a zip file.

0

Hello,

  • Verify that the file you are trying to sign is valid and not corrupted. Signing will fail if the file contents are invalid.

  • Check that the signing configuration defined in your code signing profile matches the requirements of the file. For example, some files may only support certain hashing or encryption algorithms.

  • Ensure your IAM permissions are configured correctly to allow code signing with the profile.

  • Confirm that the certificate attached to the profile is still valid and not expired. An expired or revoked certificate can cause the signing to fail.

  • Review your AWS CodeSigning service quotas in case you have reached a limit on the number of signatures.

profile picture
Julian
answered a month ago
  • What permission is required for code signing? I cannot find any permission which contains the word "signing".

  • I'm not sure I understand what you mean by "the requirements of the file". The file is just a collection of bytes. How would the code signer know what its "requirements" are?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions