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

Missing Support for Signing .xlam Files in AzureSignTool #228

Open
rasmuseeg opened this issue Jan 31, 2024 · 2 comments
Open

Missing Support for Signing .xlam Files in AzureSignTool #228

rasmuseeg opened this issue Jan 31, 2024 · 2 comments

Comments

@rasmuseeg
Copy link

Issue Summary

Description:

AzureSignTool currently lacks support for signing Excel add-in files (.xlam). Attempting to sign .xlam files using AzureSignTool results in an error message The file cannot be signed because it is not a recognized file type for signing or it is corrupt.

Steps to Reproduce:

  1. Attempt to sign an Excel add-in file (.xlam) using AzureSignTool.
  2. Observe the error message indicating the lack of support for xlam files.

Expected Behavior:

AzureSignTool should have support for signing .xlam files, similar to how signtool.exe with msosipx.dll registered works.

Additional Information

Workaround:

Currently, a potential workaround is to use signtool.exe with msosipx.dll registered. This allows for the successful signing of .xlam files.

Steps to Use Workaround:

  1. Download officesips from https://www.microsoft.com/en-us/download/details.aspx?id=56617
  2. Follow instructions for installation and registration of msosipx.dll using command regsvr32 msosipx.dll
  3. Install signtool using ClickOncePublishing component from Visual Studio Installer
  4. Utilize signtool.exe to sign the .xlam file.

Environment Details:

  • AzureSignTool Version: 4.0.1
  • Operating System: Windows 22H2

Additional Context

According to Digicert article Signtool (64-bit) does not support xlam-files.

@grzewal
Copy link

grzewal commented Apr 8, 2024

It's the exact same case with xlsm files.

@KordianVolue
Copy link

https://stackoverflow.com/questions/66867724/sign-vba-macros-inside-doc-and-or-docx-with-azure-key-vault-hsm - it should be possible using this solution to run the 32-bit version of AzureSignTool after installing OfficeSIP

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

No branches or pull requests

3 participants