Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sign ooniprobe.exe during build #336

Merged
merged 1 commit into from
Mar 18, 2024
Merged

Sign ooniprobe.exe during build #336

merged 1 commit into from
Mar 18, 2024

Conversation

majakomel
Copy link
Contributor

Fixes ooni/probe#2683

I was able to reproduce the issue with windows 11 running on UTM. Windows Defender also raised an alarm when downloading unsigned ooniprobe.exe on it's own - also marking it as a Trojan.

Probe desktop with signed ooniprobe.exe is working as expected on my UTM instance.

Copy link
Contributor

@bassosimone bassosimone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐳 🙏

execSync(
`osslsigncode sign -pkcs12 ${process.env.WIN_CSC_LINK} -pass ${process.env.WIN_CSC_KEY_PASSWORD} -n "OONI Probe CLI" -i https://ooni.org/ -in ${dstDir}/${osarch}/ooniprobe${extension}-unsigned -out ${dstDir}/${osarch}/ooniprobe${extension}`
)
execSync(`rm -rf ${dstDir}/${osarch}/ooniprobe${extension}-unsigned`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add an assert that dstDir and osarch are longer than some length to prevent unintended rm -rf

@majakomel majakomel merged commit 23a7cf7 into master Mar 18, 2024
1 check failed
@majakomel majakomel deleted the issues/2683 branch March 18, 2024 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

probe-desktop: Error invoking remote method 'list-results'
3 participants