Skip to content

Re-assign CA to .vsto file does not happen, no errors thrown. #920

@DamianOzga

Description

@DamianOzga

Hi,

Describe the bug
I'm trying to reassign .vsto file with new CA from Azure KV. In logs I can see that Sign CLI has access to KV and it prints also some CA info. All steps like assigning CA in temp dir also are done without exceptions but after all the .vsto has still old CA in xml representation. I tried to use command with -o flag but it only copy file without any changes to requested dir. Any idea what can be a cause of this?

logs

C:\WINDOWS\system32>sign code
azure-key-vault C:\Users\user\source\repos\ABC-client\ABC\client\ABC\ABC\bin\Debug\ABC.vsto
-o C:\Users\ABC\Documents\
-kvu https://ABC.azure.net/
-kvc ABC-Certificate
-fl C:\Users\user\source\repos\ABC-client\ABC\client\ABC\ABC\bin\Debug\FileToSign.txt -v trace

trce: Sign.SignatureProviders.KeyVault.KeyVaultService[0]
Fetching certificate from Azure Key Vault.
trce: Sign.SignatureProviders.KeyVault.KeyVaultService[0]
Fetched certificate. [924.1749 ms]
trce: Sign.SignatureProviders.KeyVault.KeyVaultService[0]
Certificate details:
[...]

info: Sign.Core.ISigner[0]
Submitting C:\Users\user\source\repos\ABC-client\ABC\client\ABC\ABC\bin\Debug\ABC.vsto for signing.
trce: Sign.Core.IDirectoryService[0]
Creating directory C:\Users\user\AppData\Local\Temp\nqa0qfar.pty.
info: Sign.Core.ISigner[0]
SignAsync called for C:\Users\user\source\repos\ABC-client\ABC\client\ABC\ABC\bin\Debug\ABC.vsto Using C:\Users\user\AppData\Local\Temp\nqa0qfar.pty\lodcnmpv.vsto locally.
info: Sign.Core.IDataFormatSigner[0]
Signing Mage job with 1 files.
trce: Sign.Core.IDirectoryService[0]
Deleting directory C:\Users\user\AppData\Local\Temp\nqa0qfar.pty.
trce: Sign.Core.IDirectoryService[0]
Directory C:\Users\user\AppData\Local\Temp\nqa0qfar.pty deleted.
info: Sign.Core.ISigner[0]
Completed in 2792 ms.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions