Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6798649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:45:20+00:00 2026-05-26T18:45:20+00:00

Immagine a web application that lets you digitally sign (with personal digital certificates pkcs12

  • 0

Immagine a web application that lets you digitally sign (with personal digital certificates pkcs12 released by trusted CAs) and timestamp PDF documents with a Java applet or Active X. This must obviously happen on the machine of the user because the private key of the certificate is stored locally.

So once the PDF is signed and timestamped it is uploaded on the server.
Does the uploaded file have the same features of the one created locally? Does it have sense to talk about “the original version of the file”?

I’m a bit confused on this.

Correction:
i mean digitally sign a document with the private key of a personal digital certificate (should be pkcs7, pkcs12) to ensure that it has really been signed by someone and not someone else.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:45:21+00:00Added an answer on May 26, 2026 at 6:45 pm

    If by “the original version of the file” you mean that you intend to “freeze” the document so that nobody can ever make changes to it again – that is neither possible nor the purpose of a digital signature. Anyone could simply “cut out” the a signature embedded within a document, nobody would notice.

    Protecting a document from subsequent modification involves some kind of DRM mechanism. For example, “watermarking” involving steganography is used to protect photos so that noone should be able to claim ownership of a photo, even after having modified it. But the technology is not very advanced yet, most algorithms can be easily broken.

    This implies that the notion of “the original version of the file” in let’s say a legal dispute is something that the involved parties have to agree upon in consent. There’s no way to prove origin without either consent or a trusted third party that will attest the integrity of a document, e.g. if they have an independent copy of the document.

    Apart from that, uploading a file should not change its contents. The file will have the exact same properties than the local one including the signature that was added on the client side.

    The signature will only attest authenticity and integrity of the document. If it is vital for your application to be able to tell that the signed document received is actually the one that was expected, then I’d advise you to do the following:

    • Create the PDF on the server
    • Create a hash of the document (same algorithm that will be used by the signature applet)
    • Send the PDF to the client
    • Let the client sign it and send it back
    • Compare the client’s hash with the one previously computed on the server
    • Validate the signature

    Validating the signature will ensure integrity and authenticity, comparing the hashes will guarantee you that the signed document you received on the server is indeed a signed version of the original document previously created.

    Concerning timestamps using local clocks: they’re worthless, it’s very easy to cheat. What you actually should use there is RFC 3161-compliant cryptographically secured timestamps, issued by a trusted third party. Currently that’s the only reliable way to include the notion of time in PDF signatures. There’s also built-in support for this in Adobe Reader for example. As these services are generally not available for free, it would make sense to add such a timestamp on the server after receiving the signed document. They are added as an unsigned attribute to the CMS (Adobe still speaks of PKCS7) signature, so it won’t break the signature and can safely be added after signature creation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Immagine a web application written in python/django in which users authenticate with digital certificates
We have a web-application that lets the users trigger a request to an external
Imagine that your web application maintains a hit counter for one or multiple pages
I am working on a Web application that needs to send XML to a
I have an application that downloads information from a web service and caches it
I have a web application with a category tree that is published on the
We have developed a .NET web application that uses SQL Server as a backend.
I’m in the process of developing pretty basic web application, that is mostly so
I am creating a web application for my company that needs to deal with
I have an .Net MVC 3 web application that has the following structure root

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.