Ask Your Question
0

Can I sign macros with digital signature in Flat XML documents?

asked 2015-03-11 10:43:38 +0200

sergtk gravatar image

updated 2015-03-12 07:35:47 +0200

oweng gravatar image

After saving ODS/ODT into FODT/FODS I tried to re-sign my macros ( Tools -> Macro -> Digital Signature) But I got following message:
"This document must be saved in OpenDocument file format before it can be digitally signed."

Obviously macro signature is not supported for Flat XML directly.

Is it any way to workaround this?

Every time I open Flat XML document with macro I obtain warning and should manually enable macro. I can reduce security level, but I would to eliminate warning in more secure way.

Thank you

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2015-03-12 00:35:46 +0200

oweng gravatar image

It is not possible to sign a flat (i.e., unpackaged) OpenDocument file. ODF v1.2, section 3.16 states:

An OpenDocument document that is stored in a package may have one or more digital signatures applied to the package. Document signatures shall be stored in a file called META-INF/documentsignatures.xml in the package as described in section 3.5 of the OpenDocument specification part 3.

Thus, the ZIP package is required.

edit flag offensive delete link more

Comments

What about "Signatures other than document signatures are implementation-defined." (in 3.16)? I asked about macro signature, not document. Obviously that signatures of macros are not implemented for Flat XML (at least I have not found doc about this), but I am not sure that potential implementation contradicts to OASIS standard.

sergtk gravatar imagesergtk ( 2015-03-12 02:35:43 +0200 )edit
1

Hmm. I see the subtle difference in your question. I will have to examine how the signatures are handled in the XML.

oweng gravatar imageoweng ( 2015-03-12 06:28:18 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2015-03-11 10:43:38 +0200

Seen: 161 times

Last updated: Mar 12 '15