Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Juggernaut

Code Signing of fm plugin for Windows: badexeformat

Featured Replies

Hi, I desperatly try to sign a self created plugin based on scriptmaster. I always get a badexeformat error. My signing code is:

.\signtool.exe sign /v /f "path\to\certificate.pfx" /p [mypassword] /td SHA256 /fd SHA256 /tr http://timestamp.sectigo.com "path\to\SwissQRBillGenerator.fmx64"

The exact error message is:

 

The following certificate was selected:
    Issued to: FSL Consulting Gmbh
    Issued by: Sectigo Public Code Signing CA R36
    Expires:   Sat Aug 31 00:59:59 2024
    SHA1 hash: DF4CD5F66E0A86BDE7E166D91D149CE259ACE951

Done Adding Additional Store
SignTool Error: SignedCode::Sign returned error: 0x800700C1
        For more information, please see https://aka.ms/badexeformat
SignTool Error: An error occurred while attempting to sign: C:\Users\christian\Desktop\SwissQRBillGenerator.fmx64

Number of files successfully Signed: 0
Number of warnings: 0
Number of errors: 1

 

 

How can I sign my code successfully?

Thanks Christian

 

Your plugin is a valid DLL file?

Does it work, if you sign with dll file extension?

  • Author

I changed the extension, but it does not work either. I created the plugin with ScriptMaster. And - using it in FileMaker - it works as expected!

Edited by christian

Hi Christian,

It seems you may have resolved your issue but just wanted to post some info here. Just doing some searching it seems this error can happen if you are trying to sign software that is already signed. Are you using the unsigned version of ScriptMaster to generate the plugin?

  • Author

Hi Ryan, do you mean, I have not to sign a self made plugin with 360works ScriptMaster? Are plugins created by a signed ScriptMaster automatically signed? That would explain a lot.

Hi Christian,

2 hours ago, christian said:

Are plugins created by a signed ScriptMaster automatically signed?

 here is some documentation that elaborates on this 

  • Author

Hi Ryan

I already know these sites and followed the instructions there. By the way the timestamp url is no longer valid it must be http://timestamp.sectigo.com as sectigo answered to my question. Besides those sites do not really my answer my question that is, if the scriptmaster plugin is signed, the plugins created with scriptmaster are signed too. If not, then code signing still does not work and error badexeformat remains.

Regards Christian

Perhaps I am misunderstanding what you are saying but the documentation I sent you explicitly answers your question "if the scriptmaster plugin is signed, the plugins created with scriptmaster are signed too?":

Quote

The reason for needing an unsigned version of ScriptMaster to generate plugins, is that ScriptMaster makes plugins by essentially copying itself into the new plugin, along with the functions you have written. If ScriptMaster is signed before this copy happens, it will carry the signature with it. This is unfortunate, because the newly generated plugin does not match the ScriptMaster plugin exactly, and so the signature it has carried with it is now invalid, and the plugin will not be loaded by FileMaker.

Starting with ScriptMaster 5.2, ScriptMaster will be signed by us. Any plugin generated with those versions will be signed but the signature is invalid because the generated plugin and ScriptMaster are different. This means that you have to use an unsigned version of ScriptMaster (available here) so that there is no signature carry over and you can sign the generated plugin using the outlined procedure. If you are already generating the plugin with the unsigned version of ScriptMaster and still getting the error then I am not sure what is causing the error. We do offer a signing service and can sign your generated plugin for you. If you are interested in that, please let us know!

  • Author

Hi Ryan

Thank your for the unsigned plugin. Now I can sign my plugin without any problems! I really appreciate your patience!

Regards Christian

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.