Sign a PDF with a digital certificate
To sign a PDF with a digital certificate you need two things: the certificate file (.p12 or .pfx) with its password, and a program that writes a cryptographic signature into the document. A drawn or scanned signature looks similar on screen but is only a picture. This article explains the difference, what the person receiving the file can check, and how to sign on your computer without uploading the contract anywhere.
Digital signature vs scanned signature: two different things called signing
When someone asks you to ‘sign the PDF’, they may mean one of two very different operations.
Stamping an image of your signature. You draw it with the trackpad, or photograph your signature on paper, and place it on the page. It is quick and it is what most people picture. But technically it is a picture sitting on top of the page. Anyone can copy it from one PDF and paste it into another, and nothing in the file records whether the text around it was changed after you placed it. On its own it proves very little; its value comes from the context (the email it arrived in, the conversation, the fact that both sides agree it happened).
Signing with a certificate. The program calculates a fingerprint (a hash) of the exact bytes of the document and encrypts that fingerprint with your private key. The result is embedded in the PDF together with your public certificate. Change a single comma afterwards and the fingerprint no longer matches: the reader says so. The signature also states who signed, according to the certificate, and when.
When is each one enough?
- A drawn signature is usually fine for low-stakes paperwork: a school permission slip, a delivery note, an internal form, a quote you accept by email, many private agreements where both parties know each other.
- A certificate signature is what you want when the document goes to a public administration, a bank, a court, a notary or a company that asks for it explicitly; when the content must not be altered without anyone noticing (contracts, invoices, reports, minutes); and when you may need to prove later who signed and that the text is the one you approved.
You can also combine them: a visible handwritten signature for the people who expect to see one, plus a certificate signature underneath that does the real work. If you only need the drawn version, sign a PDF with your handwritten signature covers it.
What a .p12 or .pfx certificate file is, and where it comes from
A .p12 file and a .pfx file are the same thing with different extensions: a PKCS#12 container. Inside there are two pieces that only work together.
- Your certificate: your name (or your company’s), the issuer, a serial number, the dates it is valid between, and your public key. This part is public; it travels inside every PDF you sign.
- Your private key: the secret that produces the signature. It never appears in the signed PDF. The file protects it with a password.
There are three usual origins:
- A certification authority. A government body or a commercial provider checks your identity and issues the certificate. Many countries issue personal certificates linked to a national ID, and professional bodies and tax authorities often accept or require them. These are the ones that other people’s readers can recognise.
- Your employer. Some companies run their own authority and give staff a certificate for internal documents. Inside the company it verifies cleanly; outside, it depends on whether the recipient trusts that authority.
- A self-signed certificate. You create it yourself, in a minute, with any certificate tool. It is useful for testing the process or for signing between two people who exchange the certificate in advance. To anyone else it proves only that the document has not changed since someone holding that key signed it, not who that someone is.
Why the password is never shared: whoever has the .p12 file and its password can sign as you, and the signature will be indistinguishable from yours. Treat the pair like the keys to your house. Keep the file in one known place with a backup, store the password in a password manager, do not email the certificate to a colleague so they can ‘sign for you’, and do not install it on a shared computer. If you suspect it has leaked, ask the issuer to revoke it.
A legal note in plain terms: in the EU, a certificate stored as a file on your disk normally produces an advanced electronic signature. Some procedures demand a qualified signature, which requires the key to live in certified hardware such as a smart card or token. If a form says ‘qualified signature’, check which devices it accepts before you start.
What the recipient checks, and why a signature can show as not verified
When the other person opens your signed PDF in a reader with a signatures panel, they can confirm two separate things.
- Integrity: the document has not changed since it was signed. The reader recalculates the fingerprint and compares it with the one in the signature. If someone edited a figure, removed a page or added a line, the panel reports that the document was modified after signing.
- Identity: who signed. The reader shows the name in the certificate, the issuer and the signing time, and then asks a harder question: do I trust the authority that issued this certificate?
That second question explains the most common worry. If your certificate comes from an authority that the recipient’s reader does not have in its trust list (a self-signed certificate, a company authority, or some national authorities in some readers), the panel shows something like ‘signature validity is unknown’ or ‘signature not verified’, often with a yellow warning instead of a green tick. It does not mean the document was altered or that the signature is broken. It means the reader can confirm the maths but cannot vouch for the identity.
The fix is on the recipient’s side: they add the issuing authority (or your certificate, if it is self-signed) to their reader’s trusted list, after confirming through another channel that it really is yours. After that, the same file shows as valid. If, on the other hand, the panel says the document was changed after signing, that is a real problem: ask for a fresh copy from the sender.
One consequence people learn the hard way: any edit after signing breaks the integrity check. Compressing the PDF, adding page numbers, a watermark or a password all rewrite the file. Do every edit first and sign last.
Sign PDF with a p12 file on your own computer, without uploading it
Most free electronic signature PDF services work the same way: you upload the document to their server, and often the certificate and its password too. For a contract, a payslip or a medical report, that means a copy of the content and the key to your identity on someone else’s machine, under their retention policy.
Airpic PDF is a desktop app for Mac and Windows, free and with no account, that does the signing locally. The .p12 file, its password and the PDF stay on your computer; the signature is calculated there and the signed file is saved there. There is no upload step because there is no server involved in the signing.
Three ways to sign, depending on what the document needs:
- Digital signature with certificate: you choose your .p12 or .pfx file, the app shows the holder, issuer and expiry date before you sign, and you can add a visible seal on the page and a side note on every page. Signatures are added incrementally, so a second person can sign the same PDF later without invalidating the first signature.
- Drawn signature: draw it with the mouse or trackpad, in black or blue, or use a photo of your signature on paper (the app cleans the background and keeps only the strokes). It is kept for next time.
- Signing from your phone: if drawing with a trackpad gives you a shaky scrawl, the app shows a QR code; scan it with a phone on the same network and draw with your finger. What travels is only the signing page, opened through a temporary link. The PDF itself never leaves the computer, and the signature appears on the desktop ready to place.
An honest warning before you install: the Airpic PDF installers are not yet signed with an Apple or Microsoft developer certificate, so macOS and Windows show a security warning the first time. The download page explains each step and gives the file checksums so you can confirm the installer is the one we published. The app’s interface is in Spanish; button names below are given as they appear, with a translation.
Step by step: sign a PDF with a digital certificate in Airpic PDF
Before you start, finish the document. If it needs merging, page numbers or compression, do that now, because any change after the signature will show as a modification.
- Open the PDF in Airpic PDF. Check the last page: if you want the visible seal in a particular spot (above the signature line, for example), leave room for it.
- Choose «Más» (More) → «Firma digital (certificado)…» (Digital signature).
- Select your .p12 or .pfx file and type its password. The app reads the certificate and shows who it belongs to, who issued it and when it expires. Read those three lines. If the holder is wrong, you picked the wrong file; if it has expired, readers will flag the signature, so renew it before signing anything important.
- Decide on the visible seal and the side note. The seal is the box on the page with the signer and date, useful for people who print the document. The side note on every page helps if pages might get separated. Neither changes the cryptographic strength; the signature is in the file either way.
- Save as a new file. Keep the unsigned original too, in case you need to correct something and sign again.
- Check the result. Open the signed PDF in your usual reader and look at the signatures panel: it should list your name, the date and say the document has not been modified. If it says the validity is unknown, that is the trust question explained above, not a fault in the file.
If the document also needs a handwritten mark for the people reading it, add it first with sign a PDF by drawing your signature, then apply the certificate signature as the final step. For confidential files, password-protect a PDF with AES-256 as part of preparing it; because encryption rewrites the file, do it before signing and then open the final PDF to confirm it still asks for the password and the signatures panel still shows it intact. If you are gathering scanned pages into a contract first, OCR a scanned PDF so the signed version is searchable, and compress the PDF if it is heading for an email with a size limit, both before you sign.
When everything is ready, sign the PDF with your digital certificate in Airpic PDF: your file, your key and your password stay on your computer.
FAQ
Is a scanned signature on a PDF legally valid?
It can be, for many private agreements, because it counts as a simple electronic signature and the surrounding evidence supports it. It does not prove on its own who placed it or that the text was not changed afterwards. When a bank, an administration or a contract requires a verifiable signature, use a certificate.
How do I sign a PDF with a p12 file for free?
Install Airpic PDF on Mac or Windows, open the PDF, choose «Más» (More) → «Firma digital (certificado)…», select the .p12 or .pfx file, type its password and save the signed copy as a new file. Nothing is uploaded.
Why does my digital signature say validity unknown?
The reader can confirm the document has not changed, but it does not trust the authority that issued the certificate, which is normal for self-signed or company certificates. The recipient can add that authority or certificate to their trusted list after confirming it is yours.
Can I edit a PDF after signing it with a certificate?
Any edit, including compressing, numbering pages or adding a watermark, makes the reader report that the document changed after signing. Make all changes first and sign last. Another person can add a further signature without breaking yours, because each one is added incrementally.
Sign your PDF with your certificate
Keep reading
JPG to PDF free: ten phone photos, one clean PDF
JPG to PDF free, on your own computer: turn ten phone photos of documents into one tidy PDF with straight pages, the right order and nothing uploaded.
How to password protect a PDF
How to password protect a PDF for free on your computer: opening password vs print and copy permissions, how to send the password, and the real limits.
PDF to Word free, without losing the formatting
Convert PDF to Word free on your computer. Which PDFs keep their formatting, which need OCR first, and how to get an editable DOCX without uploading it.