Replies: 1 comment 4 replies
-
The Jsign doesn't know how to sign such files. I have to think if it could be implemented, but it wouldn't bring much benefit compared to a direct API call to the cloud provider to get the signed hash. On the other hand, Jsign could directly support the Microsoft Office files, that would be much easier. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm trying to automate the triple signature mechanism required for Microsoft Office files (XLA/XLAX...) and am thus using the OfficeSIPS package provided by Microsoft.
The issue is that it's only usable with
signtool
, and while it works when using a certificate whose private key is stored on a physical usb token (Yubikey), I'm struggling to get this working with a private key hosted at Googe Cloud.I don't see how
jsign
would be able to use those "Subject Interfaces" and so am trying to figure a way to integratejsign
in the process only at the signature step.Here are the steps that I'm trying:
get the file digest by using the
/dg
optionSign the generated digest with the
jsign --detached
optionIntegrate the signed digest with the
/di
optionTimestamp the generated signature
Steps 1, 3 and 4 use the above SIPS under the hood to properly handle the Office file formats.
The
%DigestFile%
is of the formMyFile.xla.dig
and contains 44 characters in the following form:Unfortunately, the above
jsign
command fails with a clear error message:Note that I tried replacing
%DigestFile%
with%FileToSign%
but this gives me this more than expected error message:Obviously, I have misunderstood what the
--detached
option is for, but then I'm not quite sure what option I could use, if any, to getjsign
to just sign the digest file, generating a.sig
file usable by the/di
option fromsigntool
.Do you think there is a way to achieve what I'm trying to do with
jsign
?Thanks for your help
Beta Was this translation helpful? Give feedback.
All reactions