Codesigning certifcate/password as a miabuild parameter or compilervarible

Got a problem you cannot solve? Try here.
Wolfgang Guertl
Posts: 12
Joined: Wed Oct 15, 2014 7:14 am

Codesigning certifcate/password as a miabuild parameter or compilervarible

Postby Wolfgang Guertl » Tue Apr 11, 2023 12:09 pm

Hi,
The codesigning password is stored in any xxxx.mpr file unencrypted and this is getting into the source code repositoy. This is sub optimal. Is there a (simple) way to solve that security issue (miabuild parameter, compiler variable?

best regards

Wolfgang

BartWilson
Posts: 31
Joined: Mon Mar 01, 2021 9:01 am

Re: Codesigning certifcate/password as a miabuild parameter or compilervarible

Postby BartWilson » Wed Apr 26, 2023 12:30 pm

I do this with InstallAware projects now as I noticed the same thing. Through Jenkins I grab the password from our Vault instance setting an environment variable (CERT_PASS) using the pipeline plugin withVault that is masked in our console logs. This is passed as a parameter to the miabuild.exe line as "CERT_PASS=%CERT_PASS%". In the password field in the project I put the "#CERT_PASS#" and that seemed to work for me.

Wolfgang Guertl
Posts: 12
Joined: Wed Oct 15, 2014 7:14 am

Re: Codesigning certifcate/password as a miabuild parameter or compilervarible

Postby Wolfgang Guertl » Wed May 17, 2023 8:47 am

Yes this is working indeed, but die certificate password is dumped to the console/logfile.

Fix: miabuild ...... >nul

but all of the setup build process is suppressed. hard to find errors


Wolfgang

BartWilson
Posts: 31
Joined: Mon Mar 01, 2021 9:01 am

Re: Codesigning certifcate/password as a miabuild parameter or compilervarible

Postby BartWilson » Wed May 24, 2023 4:04 pm

I'm running my miabuild command line in a Jenkins pipeline pulling the cert password from a hashicorp vault using the "withVault" plugin, so Jenkins is masking the password for me. Not sure of other technologies and how they would possibly mask the password.


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 26 guests