Adobe Reader not validating signature with three pairs of ByteRange values

I have created a PDF with a Digital signature, when opened with Acrobat  Reader 10 i see the signature not bieng validated with a message saying,  "There are errors in the formatting or information contained in this signature (support information: SigDict /ByteRange value)".  My signature's byterange  contains three pairs of integers(/ByteRange[0  569 6417 400 6817 1013]) which seems to be causing this problem. Will  appreciate any input regarding this.

How have you created the signature? If you are using a program of your own creation, please repost in the Acrobat SDK forum.

Similar Messages

  • Acrobat not validating signature with three pairs of ByteRange values

    I have created a PDF with a Digital signature, when opened with Acrobat Reader 10 i see the signature not bieng validated with a message saying, "There are errors in the formatting or information contained in this signature (support information: SigDict /ByteRange value)". My signature's byterange  contains three pairs of integers(/ByteRange[0 569 6417 400 6817 1013]) which seems to be causing this problem. Will appreciate any input regarding this.

    Hi SindhuCT,
    I can't speak for PDF-XChange Viewer as to whether or not they are correctly processing the signature. The only thing I can point out is you are hashing the bytes from the beginning of the file (byte 0) to byte 569. Then you are leaving a hole for the signature from byte 570 through byte 6416. You are then hashing from byte 6417 and marching off another 400 bytes which gets you to byte 6817. Finally you are telling Acrobat/Reader to leave a hole from byte 6817 to the end of the file at byte 7830. The problem is your got byte 6817 on both sides of the fence, as part of the signed data and as part of the second unsigned portion of the file. That's probably where your problem lies.
    Yes, the PDF specification does say you can include other ranges, but it also says that it's not recommended because you are not going to be checking for all changes to the document. The specification says you should sign the entire file, less the hole for the signature contents.
    Steve

  • Adobe Reader not validating signature with three byterange pairs

    I have created a PDF with a Digital signature from my program, when opened with Acrobat   Reader 10 i see the signature not bieng validated with a message  saying,  "There are errors in the formatting or information contained in this signature (support information: SigDict /ByteRange value)".   My signature's byterange  contains three pairs of  integers(/ByteRange[0  569 6417 400 6817 1013]) which seems to be  causing this problem. PDF-Xchange viewer works fine with the same file. It validates the signature!..  Appreciate any input regarding this.

    As described in ETSI TS 102778 (PAdES), the EU standard for PDF Digital
    Signatures that has been incorporated into ISO 32000-2, only a single set
    of byte ranges (aka two pairs) is permitted.

  • Adobe reader not an "open with" option

    My adobe reader does no appear as an option to open documents on my IPAD2?

    Try the directions in this document first. If that doesn't work, ask again:
    http://forums.adobe.com/docs/DOC-2532

  • Not validating signature with jsr 105

    Hi all.
    I'm using the libraries of jsr105 xmldsig.jar and SunXmlSec-1.0.jar for signing a SAML token. I can sign the document apparently without problems but when I try to validate it in the same server that signed it simply I can't.
    This is my code for creating the signature:
    String providerName = System.getProperty("jsr105Provider", "org.jcp.xml.dsig.internal.dom.XMLDSigRI");
    XMLSignatureFactory fac = XMLSignatureFactory.getInstance("DOM",(Provider) Class.forName(providerName).newInstance());
         Reference ref = fac.newReference
         ("", fac.newDigestMethod(DigestMethod.SHA1, null),
         Collections.singletonList
         (fac.newTransform
         (Transform.ENVELOPED, (TransformParameterSpec) null)),
         null, null);
         SignedInfo si = fac.newSignedInfo
         (fac.newCanonicalizationMethod
         (CanonicalizationMethod.INCLUSIVE,
         (C14NMethodParameterSpec) null),
         fac.newSignatureMethod(SignatureMethod.RSA_SHA1, null),
         Collections.singletonList(ref));
         KeyStore ks2 = KeyStore.getInstance(KeyStore.getDefaultType());
         ks2.load(new FileInputStream("C:\\KM\\keystore"), "".toCharArray());
         X509Certificate cert = (X509Certificate) pkEntry.getCertificate();
         KeyInfoFactory kif = fac.getKeyInfoFactory();
         List x509Content = new ArrayList();
         x509Content.add(cert.getSubjectX500Principal().getName());
         x509Content.add(cert);
         X509Data xd = kif.newX509Data(x509Content);
         KeyInfo ki = kif.newKeyInfo(Collections.singletonList(xd));
         DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
         dbf.setNamespaceAware(true);
         Document doc = dbf.newDocumentBuilder().parse(ad.newInputStream());
         doc.normalizeDocument();
         DOMSignContext dsc = new DOMSignContext
         (pkEntry.getPrivateKey(), doc.getDocumentElement());
         XMLSignature signature = fac.newXMLSignature(si, ki);
         dsc.setDefaultNamespacePrefix("ds");
         signature.sign(dsc);
    As you can see, I have added the prefix "ds" in it. Plus, the namespace won't appear in enveloping document (saml2:assertion in my case) but in the envelope of my message.
    And this is my code for validating:
    OMElementImpl ghj=(OMElementImpl)XMLUtils.toOM((doc.getDocumentElement()));
    assertdoc=AssertionDocument.Factory.parse(ghj.getXMLStreamReader());
    assertdoc2=AssertionDocument.Factory.parse(node,options);
    assertdoc3=(OMElementImpl)XMLUtils.toOM((XMLUtils.newDocument(assertdoc2.newInputStream(options)).getDocumentElement()));
    asdo=AssertionDocument.Factory.parse(ghj.getXMLStreamReader());
    SignatureDocument sido=SignatureDocument.Factory.newInstance();
    sido.setSignature(asdo.getAssertion().getSignature());
    // The code above will take the signature document from the assertion document. It's made using xmlbeans with axis2
    DOMValidateContext valContext = new DOMValidateContext      (cert.getPublicKey(), sido.newDomNode());
    XMLSignature signature2 = fac.unmarshalXMLSignature(valContext);
    boolean coreValidity = signature2.validate(valContext);
    boolean coreValidity2 = signature2.getSignatureValue().validate(valContext);
    The result is that coreValidity2 is true but coreValidity is false. I don't know where the problem could be.
    Could someone help me?This is very important for me. Thanks in advance.
    EDIT: I have added the next code to see if references were ok as well:
    Iterator i = signature.getSignedInfo().getReferences().iterator();
         for (int j=0; i.hasNext(); j++) {
         boolean refValid = ((Reference) i.next()).validate(valContext);
         throw new Exception("ref["+j+"] validity status: " + refValid);
    and the validity status is true (there was only one referenc so forget about the for loop). So if references and signature are ok. How I can get a false in boolean coreValidity = signature2.validate(valContext); ?
    Thank you very much for your cooperation.
    Message was edited by:
    the_killer_tomato

    Hi SindhuCT,
    I can't speak for PDF-XChange Viewer as to whether or not they are correctly processing the signature. The only thing I can point out is you are hashing the bytes from the beginning of the file (byte 0) to byte 569. Then you are leaving a hole for the signature from byte 570 through byte 6416. You are then hashing from byte 6417 and marching off another 400 bytes which gets you to byte 6817. Finally you are telling Acrobat/Reader to leave a hole from byte 6817 to the end of the file at byte 7830. The problem is your got byte 6817 on both sides of the fence, as part of the signed data and as part of the second unsigned portion of the file. That's probably where your problem lies.
    Yes, the PDF specification does say you can include other ranges, but it also says that it's not recommended because you are not going to be checking for all changes to the document. The specification says you should sign the entire file, less the hole for the signature contents.
    Steve

  • Problem with Adobe Reader not being able to run with Maverick  10.9.2?

    problem with Adobe Reader not being able to run with Maverick  10.9.2?

    Have you updated your version of Adobe Reader?

  • Flex Mobile - PDF not displaying error - "Adobe Reader not found"

    Hi everyone,
    Is viewing PDF documents supported in Flex Mobile projects?  At the moment, I get an error saying:
    "Adobe Reader not found"
    I am converting my Adobe Air Desktop project to a Mobile project with Flashbuilder 4.5.1. Any documentation reference on how to get PDF's to view on Flex Mobile applications would greatly be appreciated.
    Thanks!

    Thankyou. The Central Question over this Lumia 625 inability to open a specific pdf (by Lonely Planet) remains:-I could uninstall this Adobe Reader app but think this is not the problem as this app does indeed open all other pdf's on my phone successfully, e.g. the Lonely Planet Invoice!
    On the other hand, this particular downloaded & installed pdf can be read on my home PC, my Macbook & my IpodTouch so I can't attribute fault to the filename.
    The basic Troubleshoot step of a "soft reset"  is NOT described in the Lumia 625 User Guide & I'm pessimistic this arbitrary step will bear fruit. I have come to the conclusion that no matter what I do, this Lumia model using the MIcrosoft OS has a system flaw that is unable to read the file (a file that other devices & another OS can read) & I will not waste time with ad hoc actions such as resets as this is not a hobby for me.
    The pdf in question (88Mb, Lumia free space is >3Gb)  is a travel guide I'd like to use on my next trip & this Lumia 625 is proving not worthy of coming with me. I am disappointed at the lack of "Customer Support" shown by the Nokia Company & I hope this is relayed as some "friendly feedback". Thank you for your own assistance, though.
    I invite correction if this assessment is mistaken.

  • How do I install Adobe Reader onto a computer with no internet?

    I have a computer running Windows 8 with no internet connection. Is there a way to install Adobe Reader onto the machine with either CD or a USB drive?
    Also, would there be a simple way to keep Adobe Reader updated offline?

    Download the FULL installer here: http://get.adobe.com/reader/enterprise/
    Put it on a flash drive and install it from there.
    Bookmark that link for future reference

  • Adobe reader not working after cs5 install

    adobe reader not working after cs5 install

    Nobody can tell you anything without proper system info or other technical details like exact version info.
    Mylenium

  • How to open in regular adobe reader, NOT touch?

    How do I open a pdf in adobe reader, NOT adobe reader touch, as I am on a laptop?  I dowloaded adobe reader, and uninstalled (I thought) adobe reacher touch - yet when I open a file from email - it defaults to touch which I cannot operate on a laptop.

    You can go to Control Panel > Programs > Default Programs > Set Default Programs, then set Adobe Reader XI as the default program.

  • Error msg. page "Adobe Reader not allowed"

    When I attempt to use any thing in  Adobe on line I get a message that says "Adobe Reader not allowed".  What's that mean?

    Sounds like you have software running on your system that prevents you from running Reader. Are yo using your own computer or a computer owned by an company? What OS are you running? What version of Reader?

  • Adobe reader not responding after uninstall , reinstall, etc. recent problem

    I try to open a pdf file and I get the "Adobe Reader Not Responding" result and can go no further.
    Have uninstalled Adobe, reinstalled, run scans.
    Windows Vista
    This problem is recent - I would say in the last few months.

    Try this:
    http://labs.adobe.com/downloads/acrobatcleaner.html

  • I tried to install adobe reader in my PC with Win 7 OS 32 bit but after opting run nothing happens, please help

    I tried to install adobe reader in my PC with Win 7 OS 32 bit but after opting run nothing happens, please help

    installer
    On Tue, Aug 19, 2014 at 12:21 AM, Pat Willener <[email protected]>

  • Adobe Reader NOT downloading in English

    Adobe Reader NOT downloading in English at website
    http://get.adobe.com/reader/download/?installer=Reader_11.0.03_English_for_Windows&os=Wind ows%207&browser_type=Gecko&browser_dist=Firefox&d=McAfee_Security_Scan_Plus_FireFox_Browse r&dualoffer=false

    Thank you for the screenshot, but I don't see what the problem is...?
    Anyway, try downloading the offline installer from http://get.adobe.com/reader/enterprise/

  • Pdfs will not open in Adobe Reader 10.1.0 with os 10.6.8

    I have an iMac, Snow Leopard v. 10.6.8 and Adobe REader 10.1. When I click on a pdf to open, all I get is the QuickTime icon, which opens the 1st page only, but when I try to print even that page, it is blank.
    I have tried dumping the AdobePDFViewer plugin from the Internet Plug Ins as indicated below, to no avail.
    [file://localhost/Library/Internet%20Plug-Ins/AdobePDFViewer.plugin/]
    This has been SOOOOO frustrating. When I called Adobe, they want to charge me $39.99 to talk to a technician! Since their download for the Reader is "free," I find it objectionable, to say the least, that they have the audacity to want to charge me on a "free" application program!
    I'm ready to change to an alternative Reader, if their is such a thing, if anyone out there has a suggestion for that kind of program. I would really like to solve the mystery of why my Adobe pdfs won't open, however. This problem has been going on for about 2 weeks now, since August 7th.
    Thanks.

    Select a PDF file, CMD+I, check the Open With section, and ensure that AR is selected. If not, then select it and click on the Change All button. Alternatively, select Preview, which is my default PDF reader.

Maybe you are looking for

  • After "Organize Library" 1/2 are Unknown Artist/Album

    What could go wrong letting iTunes Organize my library? I had all my songs in one place in folders labeled with Artist names. After Organizing, 1/2 my files are under unknown artist and unknown album. In iTunes "Get Info" all these songs show Encoded

  • Problem with Type Reference "TYPE' in JCO

    Hi All, I am facing a weard situation when i am creating a custom RFC function module. This FM is called by Java program with JCO. But, if i define the FM parameters with Reference type as 'TYPE', the Java application is not able to get the data. But

  • Faint but regular clicks/pops in MBP (Quad Core 2011, 2.0) headphone output

    I've seen some scattered posts about this. In my case it's definitely not the motion sensor as it happens if the computer is totally still. I can hear it with the audio turned all the way down and no applications running. It happens every 30 seconds

  • Home Sharing - Itunes library does not load and jumps to Music

    Hi, I have 2 itunes libraries on 2 different computers on the same network using the same apple id.  One of the computers is an IMAC and the other is windows. On the windows computer when I click on the shared library (from the IMAC) the library appe

  • Top-of-page for list display thru ALV

    Hi All, I was suppose to write a detail report thru ALV, this I have handled thru hotspot and in the user_command,I am have the below code.. for ALv I am using FM REUSE_ALV_GRID_DISPLAY FORM User_command. WHEN '&IC1'. PERFORM LIST_DISPLAY using RS_SE