Notarization fails: The signature of the binary is invalid.

Code Sign is successful:

codesign -vvv --deep --strict kudilpass-3.0.0.dmg kudilpass-3.0.0.dmg: valid on disk kudilpass-3.0.0.dmg: satisfies its Designated Requirement

However, notarization fails

"issues": [

{
  "severity": "error",
  "code": null,
  "path": "kudilpass-3.0.0.dmg/kudilpass.app/Contents/MacOS/kudilpass",
  "message": "The signature of the binary is invalid.",
  "docUrl": null,
  "architecture": "x86_64"
},

{
  "severity": "error",
  "code": null,
  "path": "kudilpass-3.0.0.dmg/kudilpass.app/Contents/runtime/Contents/MacOS/libjli.dylib",
  "message": "The signature of the binary is invalid.",
  "docUrl": null,
  "architecture": "x86_64"
}

]

Any help is appreciated. Thanks

I used the following jpackage maven plug in and it works.

https://petr-panteleyev.github.io/jpackage-maven-plugin/index.html.

Note:

  1. Originally, I used jpackage to package and codesign using command separately. This fails at the time of notarization.
  2. Working version is, I used the jpackage to package and sign. It works.

I thought it may be useful for someone else. Thanks

Notarization fails: The signature of the binary is invalid.
 
 
Q