Jump to content

how can I digitally sign the files generated by my program?

- - - - -

  • Please log in to reply
8 replies to this topic

#1
a_catalin

a_catalin

    Newbie

  • Members
  • Pip
  • 3 posts
Hi.
I use Delphi 7.
I searched the forum before asking but I could not find any relevant informations about this.
I made a program who generates some exe files. The problem is that there are antiviruses who detects some of them as false positives.
I reported them as false positives but this is not a good long term solution.
The support teams for these antiviruses suggested that I should digitally sign them. This way the rate of false positive detection will be reduced.
The problem is that I don't know anything about how to do that...
Could somebody help me...?
Thank you in advance.

Regards, Catalin

#2
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,722 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
Introduction to Code Signing (Windows)
sudo rm -rf /

#3
a_catalin

a_catalin

    Newbie

  • Members
  • Pip
  • 3 posts
Thank you but what I meant to say is that I don't know how to digitally sign a file using Delphi code.

#4
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,722 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
You sign the executable itself, not the code. Unless you want to write a program in Delphi that signs other stuff? What IDE and/or compiler do you use?
sudo rm -rf /

#5
a_catalin

a_catalin

    Newbie

  • Members
  • Pip
  • 3 posts
I know that you sign a file not the code.
In my first post I wrote that it's about signing the exe files generated by my program.
Also I wrote that I use Delphi 7.
Those exe files are stored as a "template" in resources; the user adds icon(s), info and some parameters.

#6
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,722 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
Unless I'm missing something here, the language isn't the same as the IDE...
sudo rm -rf /

#7
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
For Delphi, the language and IDE are tightly integrated. As a result, "Delphi 7" refers to both a language version and the corresponding IDE version.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#8
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,722 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
So I was missing something. In this case I suggest you write a batch program that, given some parameters, will call a publicly-available software signing program that'll for each target file.
sudo rm -rf /

#9
LuthfiHakim

LuthfiHakim

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 765 posts
Your problem actually not caused by unsigned executable. But by the behavior of your program. Many antivirus check if a program extracts something from inside it (like you storing "template" exe inside your main exe resource section, customize it, then store in disk). Blindly many of them think this is you spreading malwares.

Signing the executable perhaps will ease the "accusation". So you may try to sign the main executable (the one that contain "template" executable). If your template exe does not have this behavior, the antivirus will not complaint (unless it has other "accusable" behavior). So it does not necessary to sign it.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users