Digital signature of an Office Word .doc

Hi,
I wan't to sign a word doc.
I have two options (maybe more...):
1) Read the doc. using "org.apache.poi." and then sign it as I like.
2) Use the built in features of Word.
*** Does anyone know what algorithms are used in option 2)?
is 2) strong crypto wise?
what is the better approach?
are there other approaches?
THANKS.

800414 wrote:
I'm looking for examples and\or direct specifications that it works with word .doc.You are not likely to see a specification from anyone that digital signatures work with specific types of documents - unless it happens to be an industry-specific use-case (an example is the eNotarization Markup Language - http://lists.oasis-open.org/archives/tc-announce/200903/msg00004.html).
XMLSignature (DSIG) can sign anything. Assuming you're signing reasonable-sized documents (that can fit into main-meory without crashing the computer), you can Envelope the document with the signature in one of three ways:
1) If the To-Be-Signed (TBS) document is an XML document, just Reference the TBS-document's root element for the signature;
2) If the TBS document is ASCII text, you can wrap it with your own element name and Reference the newly-made-up element for the signature;
3) If the TBS document is binary, Base64-encode the binary, wrap it with your own element name and Reference the newly-made-up element for the signature. Don't forget to Base64-decode the element content to recreate the binary file.
You really need to experiment with DSIG a little bit to understand the ways in which it can work for you. Don't try to understand the entire DSIG specification before you use it - it is too hard unless you have a very good understanding of cryptography and XML Schema Definition (XSD). Do the tutorials that Sean Mullan created (http://java.sun.com/developer/technicalArticles/xml/dig_signature_api/ and http://download.oracle.com/javase/6/docs/technotes/guides/security/xmldsig/XMLDigitalSignature.html); go back and read the DSIG spec, review the examples again and the light will start getting brighter.
I cannot stress how important it is to have a grasp of XML Schema Definition to understand anything in XML anymore. To be honest, I would begin there because anything you do in XML will touch XSD. When things go wrong with XML validation of schema-constrained documents (as DSIG is), all your error-messages are likely to reference the document's XSD. If you don't understand how XSD works, you will definitely start drinking - or drinking more. :-)
Arshad Noor
StrongAuth, Inc.

Similar Messages

  • How can i bring in a office word doc into my iphone

    how can i bring in a office word doc into my iphone

    Email it, then tap the attachment on your iPhone to view it.  Or, upload it to a cloud service like Dropbox and use the free dropbox app to access it.

  • How to put Digital Signature in M.S. Word

    Dear Sirs,
    We are having Microsoft Office 2007 original licence. We have purchased Digital signature. Please let us know hot to activate digital signature in the word document.
    Regards,
    Ebe. 

    See if this helps:-
    http://office.microsoft.com/en-gb/word-help/add-or-remove-a-digital-signature-in-office-documents-HA010099768.aspx?CTT=1

  • Displaying Open Office word doc in browser using JavaFX

    My requirement is to display open office doc in my application for modification

    Hi. The following works for Microsoft Word docs and Notepad.
    import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.stage.Stage;
    * @author gusaros
    public class OpenOffice extends Application {
         * @param args the command line arguments
        public static void main(String[] args) {
            Application.launch(args);
        @Override
        public void start(Stage primaryStage) {
            primaryStage.setTitle("Hello World");
            Group root = new Group();
            Scene scene = new Scene(root, 300, 250);
            Button btn = new Button();
            btn.setLayoutX(100);
            btn.setLayoutY(80);
            btn.setText("Hello World");
            btn.setOnAction(new EventHandler<ActionEvent>() {
                public void handle(ActionEvent event) {
                    String[] cmdArray = {"cmd", "/c", "start", "c:\\fdres.doc"};
                    try {
                        java.lang.Runtime.getRuntime().exec(cmdArray);
                    } catch (Exception s) {
            root.getChildren().add(btn);
            primaryStage.setScene(scene);
            primaryStage.show();
    }

  • MS office Word doc to Appleworks

    I have had MS Office on my Emac for the past two years. I have decided I want to go to AppleWorks. I can't seem to find information on how to do this.
    Jim

    Peggy,
    Thanks.
    Since my earlier post I've answered my own question. Yes, indeed, you can persuade the earlier MacLink AW translators to open a Word document regardless of its parentage: Give the file a new identity as a "Microsoft Word Mac 98 Document."
    ResEdit is a handy tool, if you don't mind fooling around with basic file attributes. Until you get the hang of it, make a copy of the Word doc and work on the copy. Or just play it prudently and always make a copy first.
    Launch ResEdit (freeware at http://www.tgtsoft.com/prod_rb.php) and open the file. It will ask if you want to create a resource file, and it's a good idea to say yes.
    Go to File|Get Info for ... (this file) to open the attributes dialog.
    Probably the Type will be WDBN and the Creator MSWD.
    Change Type to W8BN, File|Save, Close, and presto! it's a "Microsoft Word Mac 98 document." Launch AppleWorks, File|Open All Available, and open the file.
    Save it as Appleworks, or whatever. My version of MacLinks AW will save it as Word 6 (and earlier) for Mac, and WordWin 7.0 (and earlier). I don't have MS Office for Mac, so I can't test the result.
    You may need to do some reformatting. My docs looked pretty clean in Appleworks.
    Harvey

  • Digital signatures Office 2013 invalid in 2010

    We have pc's with Office 2010, Office 2007 and Office 2013.
    When we sign a document(with a certificate issued by a local CA server) in Office 2013, and open that file in Office 2010 or 2007, it says 'invalid signature'. When we open that same document on another pc with Office 2013, the certificate is valid.
    What i already tried:
    -Another document(it happens at every document signed by Office 2013)
    -setting the 'Do not include XAdES reference object in the manifest'
    to enabled/disabled in GPO(by adding the office 2010, 2007 and 2013 ADMX templates).
    -Setting the 'Legacy format signatures'
    to enabled in GPO
    If we sign a document in 2010 or 2007, it is valid in all versions of Office.

    -setting the 'Do not include XAdES reference object in the manifest'
    to enabled/disabled in GPO(by adding the office 2010, 2007 and 2013 ADMX templates).
    We need to set the 'Do not include XAdES reference object in the manifest' to
    Enabled. After that, sign a new document in Office 2013 and then try to open it in previous version to check the result. The settings may not apply to existing signed documents, you will need to sign a new document to test the result.
    For more information about digital signature settings for Office 2013, please refer:
    http://technet.microsoft.com/en-us/library/cc545900(v=office.15).aspx
    Regards,
    Steve Fan
    TechNet Community Support

  • Excel 2010 - Multiple Digital Signatures?

    How would you add multiple digital signatures to an Excel 2010 workbook?

    Hi,
    To add multiple digital signatures, we need to  create the signatures first.
    Then please refer to the following steps:
    Click the File tab.
    Click Info.
    Under Permissions, click Protect Document,
    Protect Workbook or Protect Presentation.
    Click Add a Digital Signature.
    Read the Word, Excel, or PowerPoint message, and then click OK.
    In the Sign dialog box, in the Purpose for signing this document box, type the purpose.
    Click Sign.
     Check the following MS link for additional information.
    http://office.microsoft.com/en-us/excel-help/add-or-remove-a-digital-signature-in-office-files-HA010354308.aspx
    Regards,
    George Zhao
    TechNet Community Support

  • Digital Signatures and Certificates

    I use Adobe Profession 8,
    I installed a certifcate on my computer (certnew.cer) which has my informations and stuff on it.. ok so far. We have our own certificate server.
    When i try to apply a signature on a pdf i created, my name is not on the list (Adobe). The only options i have is to create one or import one (.pfx, .p12). I dont mind importing one but it cant import .cer files.
    Testing on another computer, after installing his certificate, his name was shown on the list in adobe.
    Is there something that I can be doing wrong?
    Is there are way to import a .cer file instead of a .pfx, .p12?
    Is there an easy method of converting a .cer to .pfx (.p12) apart from using Windows Drivers Kit?

    A cer file doesn't have a private key. It contains a public key and other certificate data. Signing requires a digital ID which includes both the cert/public key and the private key, and these are usually stored in pfx/p12 files.
    Self-signed digital IDs are inherently less secure, but they can be made more secure if the recipient verifies the cert "thumbprints" that the signer shares ahead of time. . .
    Comprehensive digital signature instructions exist in this doc:
    http://www.adobe.com/devnet/acrobat/pdfs/digsig_user_guide.pdf
    See also other security related docs on:
    http://www.adobe.com/devnet/acrobat/security.html
    ben

  • Using the AutoText Feature: An easy way to generate Digital Signatures

    One feature I find particularly useful is "AutoText".
    Using this, you can assign a keystroke combination to effectively generate a word, phrase or sentence while typing messages on your blackberry.
    This is a great tool, particularly for multiple digital signatures across several email addresses, text messages and also to use with apps like Facebook and Twitter.
    To access the "AutoText" feature, begin a new email or text message, hit the "Menu" button and select "Edit AutoText".
    A list of all the stored abbreviations is displayed.
    Simply begin typing the set of keystrokes you want to associate with your digital signature (or any other word/ phrase/ sentence etc.) and you will see the current abbreviations associated with those keys.
    Type in a unique set of keys you want to associate with a series of words and hit the "return" or "enter" key.
    A new screen with the following display will appear:
    "Replace:
    With:
    Using: SmartCase
    Language: All Locales"
    In the "Replace:" section, key in your own abbreviation and the associated word or words in the "With:" area.
    Pick the options from the "Using:" and "Language:" drop down menus and you're done!!
    Hit the "Back" key and select "Save" from the dialog box which appears.
    Now, use the keystroke you just created while typing messages and see how much easier this wonderful feature makes your life!!
    Trust this tip is valuable to you all. I'm not the best writer in the world so if anything here is not clear, please ask and I will clarify to the best of my ability.
    Best.
    G

    Thanks for your write up. Indeed autotext is great way to simplify your signature or commonly used templates for SMS or emails.
    tanzim                                                                                  
    If your query is resolved then please click on “Accept as Solution”
    Click on the LIKE on the bottom right if the post deserves credit

  • I am getting error :digital signature for this package is incorrect--

    I have completed a clean install and have installed OS 9.2 as well as OS 10.3
    and OS 10.4.2 from install DVDs apparently successfully. Now when I attempt to install the software updates for my computer, I get error that the digital signature of this package is incorrect and may have been corrupted since signed by apple. I have previously had all software up to date using software update/s etc. So how do I fix this digital signature Problem??
    Harold

    Hi, Harold and baltwo —
    (1) Harold, I agree with baltwo's advice to try using "stand-alone" downloads as a short-term "work-around."  But I realize this may be unsatisfying — if the error becomes chronic.
    (2) baltwo's advice to search Apple's KnowledgeBase is normally a very useful resource — but in this instance, only provides links to a few articles about the topic as it relates to OS 9, Mail.app, and OS X Server. If you'd like to read background info about the current usage of digital signatures, you'll find info that's a bit more relevant from:
        •  Help »» Mac Help »» "What is a digital identity" and "certificate"
        •  an ADC search (using, e.g., [ exact phrase: "digital signature" and all the words:
           "OS X" ] as terms)
        •  a Google•Mac search.
    However, in terms of resolving your situation, I'm inclined to think that most of the search results will be academic. If you search through these discussions to see others' Software Update problems and solutions, you'll find this error message is relatively common — and seems to represent a number of conditions (based on the differing solutions).
    (3) I haven't noticed a cogent solution that spans these problems. But the troubleshooting process outlined in KnowledgeBase Articles 106695: Troubleshooting Automatic Software Update in Mac OS X and 106692: Troubleshooting installation and software updates may be helpful. As the latter suggests, you may want to try logging-in to a temporary "test" administrator account as a means to determine whether your account's keychain is implicated specifically. (...or another user-specific issue.)
    Please post back to discuss your progress.
    Good luck!
    Dean

  • How do I add a digital signature to Word 2011?

    I am at a loss at to adding a digital signature to Word 2011 docs on my macbook pro, any ideas???

    Formscentral does not support forms with digital signature workflows. I suggest you see if our Echosign product meets your needs.

  • Can I sign a Microsoft Word Document with the digital signature from a MIlitary issued CAC card?

    Is it possible to sign a MS Word doc with the digital signature froma  Military issued CAC card? It is easily done in Adobe but, I cannot find any guidance for MS Word docs.

    According to this thread in Microsoft's forums:
    http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macword/can-i-how-do- i-add-a-digital-signature-to-a/eb2c2787-b13f-4388-b20f-4580515eec95
    this is not possible with Word for Mac.
    Regards.

  • PKI- Digital signature and doc cypher

    Hello everybody, I have a problem and I need help please. This is my situation:
    I would like to cypher a world document and add a digital signature. I want to use certificates to do so. That is why I have developed a PKi in order to get certificates to use digital signature and ASYMMETRIC encryption. I have to add that I am trying to assure
    non repudiation, integrity and confidentiality of word documents.
    Is there any way to do it? if so, how can i do it and what software application do you recommend? thanks!

    As Elke explains and shows via that link, that informs you how to digitally sign a document.  However a digital signature only provides non-repudiation and integrity of a document, not confidentiality.  Symmetric Encryption is needed for that. 
    You would not use Asymmetric encryption to bulk encrypt files, it would be too slow.
    Unfortunately there is no easy way to symmetrically encrypt files with the tools available in modern Windows distributions.  Personally I would digitally sign the document, then use a tool like 7-Zip
    to encrypt them with AES-256 and a passphrase, or to go one better than that use Symantec Encryption Desktop. Using the latter allows you to do encrypt either with a passphrase, or with
    your targets PGP public key (that does of course assume they are also using PGP) so that only they can decrypt it with their private half.
    Also signing an Office document (or PDF for that matter) with an internal PKI certificate is only valuable if the documents are internally distributed within the same organisation, or when the other organisation(s) trust your root CA certificate, otherwise
    they will not be able to verify the signature (think of it like the error in your browser with the red X stating there is a problem with your certificate).
    I'm not quite sure what your use case is, but if it's just for distributing internal documents then no problem.  Otherwise you'll have to get a document signing certificate from a vendor like
    GlobalSign who have a trusted root certificate which ships with most operating systems so that anyone who receives the document can verify it.
    D

  • Applying a timestamp to a Digital Signature in Office

    Hello,
    I want to apply een digital signature to a Worddocument or to the macromodule of a Worddocument.
    Because the certificate expires after a year, i want to add a timestamp.
    Now I read in the article "Digital signatures in Office 2010" that there are two registry settings to control the type of signature Office creates: XAdESLevel and MinXAdESLevel.
    So if I want to a signature with a timestamp i have to add the registry settings:
    XAdESLevel = 2 (REG_DWORD)
    MinXAdESLevel = 2 (REG_DWORD).
    Is that all, or do i need tot provide Office with a time stamp server?
    (I don't think i have a time stamp server).
    Kind regards,

    Hi,
    As far as I know, if we want to use the time stamp functionality with digital signatures, we must complete the following:
    Set up a time stamp server that is compliant with RFC 3161
    Use the Group Policy setting, Specify server name, to enter the location of the time stamp server on the network.
    On the other words, we need a time stamp server.
    Quote From:
    http://technet.microsoft.com/en-us/library/cc545900(v=office.14).aspx
    Hope it's helpful.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • I'm having a problem sending a word doc via email. I have Mac for Office 08, when I save the document as a .doc or .docx, and send it to someone, they receive it as a blank document. Yet, when I open it on my Mac, it has a "word" icon. How do I fix?

    I'm having a problem sending a word doc via email. I have Mac for Office 08, and I'm using Mavericks OS. When I save the document as a .doc or .docx, and send it to someone, (doesn't matter if its safari, chrome or firefox or on my yahoo or gmail accounts) they receive it as a blank document. Yet, when I open it on my Mac, it has a "word" icon and I can read it. How do I fix?

    I suggest you post on the Microsoft Mac forums since it's their software you're having issues with.
    http://answers.microsoft.com/en-us/mac

Maybe you are looking for

  • Multiple page data entry form

    Hello, I need to build a multiple page data entry screen for users to enter information into the DB table. There are many fields I need to capture and store in a table. Some of the fields are multi line text field for the users to enter a few lines o

  • Project Management Add-on

    Hi One my client is looking for a Project Management solution ,is there any add-on for this? He is a real estate developer.

  • Adjusting time based on rule

    Hi all, I two fields in my screen start time and end time. Based on start time i want adjust my end time. Here is my rule The above rule is not working any suggestions will be advisable. Regards, Gupta

  • Jsp file calling servlet two times

    hello i have created registration form for hospital management project in which registration form is jsp file on clicking on submit it calls servlet file which actually inserts data into database but problem is when i click on submit button it calls

  • Macbook running slow after mountian lion install??

    i have a late 2010 macbook (white) and i recently upgraded my mac to mountian lion after ugrading to 4 GB of RAM. i tried the vram and pram reset but that was a couple months ago. maybe i should try it again? what else do i need to do? it takes 1:30