PDF Guides

How to Digitally Sign a PDF with a .p12 or .pfx Certificate

What a certificate-based PDF signature is, how PAdES differs from a pasted image, and how to sign with your .p12 or .pfx file without uploading the key.

Saizul Amin
Saizul Amin28 Oct 2026 · 4 min read
How to Digitally Sign a PDF with a .p12 or .pfx Certificate

How to Digitally Sign a PDF with a .p12 or .pfx Certificate

"Sign and return" usually means one of two very different things. The quick version is an electronic signature: you type your name or paste a picture of your handwriting onto the page. It records intent, but anyone can copy the picture and nothing stops the document being edited afterwards. The stronger version is a digital signature: a cryptographic value calculated from the exact contents of the file with a private key that only you hold. Change one character and the signature no longer matches. The free PDF Digital Signature tool adds this kind of signature using your own certificate file, entirely in your browser.

What you need

A certificate and its private key, usually stored together in a .p12 or .pfx file and protected by a password. You may already have one: many companies issue them to staff, some banks and governments provide them for tax or company filings, and Windows or macOS can export one from the system keychain. If you do not have one, you can make a self-signed certificate with our Document Signing Certificate Maker in a minute.

What happens when you sign

  1. The tool opens your .p12 file with your password, in memory, in the browser tab.
  2. It adds a signature field to the PDF. This is written as an incremental update, appended to the end of the file, so the original bytes stay exactly as they were.
  3. It reserves space for the signature value and calculates a SHA-256 digest of everything else in the file.
  4. It signs that digest with your private key and writes the signature, your certificate and any chain certificates from the .p12 into the reserved space.

Because the original bytes are untouched, any signatures already in the PDF stay valid. A contract can go round several people, each adding their own signature in turn.

PAdES or PKCS#7

PAdES is the European standard for PDF signatures (ETSI EN 319 142) and the format expected for advanced electronic signatures under eIDAS. It is the default here. Choose PKCS#7 detached only if a recipient uses old software that does not recognise PAdES. Both are understood by Adobe Acrobat, Foxit and most document management systems.

Visible or invisible

Draw a rectangle on the page where you want the signature box. It can show "Digitally signed by" with your name, the date and time, the reason and location, and an image of your handwritten signature. A PNG with a transparent background looks most natural. If you do not draw a box, the signature is invisible on the page but still listed in the reader's signature panel, which suits documents where the layout must not change.

Why Acrobat may say "validity unknown"

A reader checks two things: that the document matches the signature, and that it trusts whoever issued your certificate. The first is maths; the second depends on lists of trusted authorities built into the reader. A certificate from an authority on the Adobe Approved Trust List shows a green tick. A self-signed or company certificate shows "validity unknown" until the recipient adds it to their trusted certificates. The document is still intact; the reader simply does not know who you are. Sending your public .cer file through a separate channel lets recipients trust it.

Step by step

  1. Load the PDF.
  2. Choose your .p12 or .pfx file and type its password.
  3. Fill in the reason, location and contact, if wanted.
  4. Draw the signature box, or skip it for an invisible signature.
  5. Choose which lines to show, add an image, set the text size and border.
  6. Press Sign PDF. The report shows your certificate details and confirms that the signature checks out.

Keeping your key safe

The password field is never stored with your saved settings, and nothing is uploaded. Still, treat the .p12 file like a house key: keep it on devices you control, and do not email it together with its password.

Before you rely on it

Whether a digital signature is enough for a particular contract, filing or regulator depends on the law where you are and on the type of certificate. Qualified electronic signatures need a qualified certificate on a secure device from an approved provider. This guide is general information, not legal advice.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages