Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Bootstrap script is not signed #62

Open
davidOSUL opened this issue Jul 22, 2019 · 1 comment
Open

Bootstrap script is not signed #62

davidOSUL opened this issue Jul 22, 2019 · 1 comment
Labels
area: SDK Quantum SDK used to build Q# projects bug Something isn't working

Comments

@davidOSUL
Copy link

Describe the bug
When running the bootstrap script, powershell will issue an error saying it cannot be run because the script is not digitally signed
To Reproduce

Clone the repo and try to run the bootstrap script on a machine with execution policy set to remotesigned

Expected behavior
script runs as normal because it is signed

Workaround
Run PS as admin and run "set-executionpolicy unrestricted"

@davidOSUL davidOSUL added the bug Something isn't working label Jul 22, 2019
@cgranade
Copy link
Contributor

Thanks for the report! If I understand right, this should only affect Windows systems, as PowerShell on non-Windows platforms doesn't use AuthentiCode signing? As an alternative workaround, Unblock-File should remove the zone information from the bootstrap script so that it can run under RemoteSigned and lower polices.

@cgranade cgranade added OS-Windows area: SDK Quantum SDK used to build Q# projects labels Jul 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: SDK Quantum SDK used to build Q# projects bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants