Matlab compiler : how do I sign an app with a certificate I supply?

39 visualizaciones (últimos 30 días)
I work in an organisation that is fairly concerned about malicious applications running on internal networks. For that reason, nothing can be installed on a Windows machine unless it's either on a whitelist of known 'major' apps, or contains a certificate that is recognised.
I want to use Matlab compiler to generate an application that can run on production Windows machines without the interactive Matlab environment.
How do I tell Matlab compiler to sign the application it produces, and point it at a certificate that I can supply?
This is standard functionality in things like Visual Studio, see https://msdn.microsoft.com/en-us/library/br230260.aspx

Respuesta aceptada

William Smith
William Smith el 26 de Mzo. de 2018
Editada: William Smith el 26 de Mzo. de 2018
Answer : there doesn't seem to be any way to do this in Matlab compiler (at least, as of 2016b which I'm currently using).
I worked around it by using the Windows program signtool.exe (part of Visual Studio) explicitly after compilation.
Something like this:
% compile
mcc('-m','-R','-startmsg', ...
'-d', outfolder, ...
'-v',source,'-o',strrep(target, '.exe', '')); % compile. mcc wants the target name without the .exe
% sign
system([ 'signtool.exe sign /f MYCERT.pfx /p MYPASS /t http://timestamp.verisign.com/scripts/timstamp.dll /v ' outfolder '/' target ], '-echo');
  1 comentario
Dolev
Dolev el 10 de Mzo. de 2023
Hi , Do you know if there are any updates and if there is a better way now ?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre MATLAB Compiler en Help Center y File Exchange.

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by