@TDao I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.
Issue: I followed the instructions here to sign my dll locally using the the certificate from my Azure Trusted Signing account. It kept looking at local certificates, instead of pulling from my Azure account. I did do az login
before running signtool. The signtool version is from C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64\signtool.exe
Resolution: Resolved by @TDao
I got it working. Looks like when signing locally and use az login
to authenticate, signtool expect certain tenant and subscription to be set as well. As long as I ran the following 2 commands, I was able to sign just fine after that, without the /sha1
or /a
options.
az login --tenant <tenant_id>
az account set --subscription <sub_id>
This seems not very intuitive since signtool should have been able to determine from my the metadata to find the corresponding tenant and subscription that have the expected signing account and profile.
If you have any other questions or are still running into more issues, please let me know. Thank you again for your time and patience throughout this issue.
Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.