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

조회 수: 19 (최근 30일)
William Smith
William Smith 2017년 5월 12일
댓글: Dolev 2023년 3월 10일
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

채택된 답변

William Smith
William Smith 2018년 3월 26일
편집: William Smith 2018년 3월 26일
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
Dolev
Dolev 2023년 3월 10일
Hi , Do you know if there are any updates and if there is a better way now ?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Downloads에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by