Skip to content

Commit d3cd68a

Browse files
authored
Merge pull request #154 from MHebes/add-kvt-to-walkthrough
Add -kvt option to walkthrough. Closes #153.
2 parents d00c7de + 60a4e0d commit d3cd68a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

WALKTHROUGH.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ A lightweight guide on how to use this tool in context.
1010
* Upload your certificate into the KeyVault, giving it a name.
1111
* Within your Azure AD, register an application with a name (no need to worry about the redirect URL).
1212
* In the overview screen for the application, note the Application ID -- this will be the client ID input into the `-kvi` parameter later.
13+
* Also note the Directory ID -- this will be the tenant ID input into the `-kvt` parameter later.
1314
* Create a client secret for the application and give it a description (e.g. "Access to KeyVault certificate for signing"). Be sure to copy the secret somewhere temporarily, as you won't be able to see it after initially creating it. This secret will be passed into the `-kvs` parameter later.
1415
* Return to your KeyVault's settings, and go to the `Access Policies` section.
1516
* Create an access policy that applies to your registered application, e.g. if the app you registered in AD was called `MyApp`, this policy should apply to the `MyApp` user.
@@ -38,7 +39,7 @@ A lightweight guide on how to use this tool in context.
3839
- task: CmdLine@2
3940
displayName: 'Sign outputted .exe with global AzureSignTool'
4041
inputs:
41-
script: AzureSignTool sign -du "[YOUR_URL]" -kvu "https://[VAULT_ID].vault.azure.net" -kvi "[REDACTED_APPLICATION_ID]" -kvs "[REDACTED_APPLICATION_CLIENT_SECRET]" -kvc "[REDACTED_CERT_NAME]" -v [FILES_YOU_WANT_TO_SIGN]
42+
script: AzureSignTool sign -du "[YOUR_URL]" -kvu "https://[VAULT_ID].vault.azure.net" -kvi "[REDACTED_APPLICATION_ID]" -kvt "[REDACTED_DIRECTORY_ID]" -kvs "[REDACTED_APPLICATION_CLIENT_SECRET]" -kvc "[REDACTED_CERT_NAME]" -v [FILES_YOU_WANT_TO_SIGN]
4243
```
4344
4445
At this point, the build should be able to run and sign the files you have listed.

0 commit comments

Comments
 (0)