How to digitally sign a PDF using Acrobat reader and some Tools

Did you know you can digitally sign any PDF document using Adobe Reader and a self signed certificate.

First of all you need to get the tools to create a certificate :

  • signcode.exe
  • makecert.exe
  • cert2spc.exe
  • pvk2pfx.exe

These files are part of the MS SDK KIT and or not allowed to be distributed !

But you can find a download here :

http://www.kastaban.de/cert4me/MAKE_MY_CERT_FILE.zip

Next run the MAKE_MY_CERT_FILE.CMD file

@echo off
setlocal
if “%~1″==”” goto INFO
if “%~2″==”” goto INFO
set WORKINGDIR=%~dp0
IF %WORKINGDIR:~-1%==\ SET WORKINGDIR=%WORKINGDIR:~0,-1%
set KEYDIR=%WORKINGDIR%\keys
if not exist %KEYDIR% md %KEYDIR%
set CERTIFICATE_PASSWORD=%2

%WORKINGDIR%\makecert -r -n “CN=%1” -b 01/01/2013 -e 01/01/2099 -eku 1.3.6.1.5.5.7.3.3 -sv %KEYDIR%\%1_cert.pvk %KEYDIR%\%1_cert.cer
%WORKINGDIR%\cert2spc %KEYDIR%\%1_cert.cer %KEYDIR%\%1_cert.spc
%WORKINGDIR%\pvk2pfx.exe -pvk %KEYDIR%\%1_cert.pvk -pi %CERTIFICATE_PASSWORD% -spc %KEYDIR%\%1_cert.spc -pfx %KEYDIR%\%1_cert.pfx -po %CERTIFICATE_PASSWORD%

goto END
:INFO
echo.
echo.
echo Please start me with:
echo %~nx0 ARG1 ARG2
echo.
echo ARG1=FileName of Certificate
echo ARG2=Password of key (always use the sam ein the run!)
echo.
goto END

:END
endlocal

And run it with 2 arguments

image

Example certificate name Audministrator and Test as password

image

You will have to re-enter the password again.

image

After this these are the certificate files that will be created.

image

OK so now you have the certificate you are ready to sign PDF documents Smile

image

When selecting Sign with Certificate

image

Drag a rectangle in your PDF document.

image

Select the certificate you created, and don’t forget to Lock the document after signing

image

Select the certificate you created before.

image

image

image

It will ask you to save the PDF, best use a new name.

image

After that the signature is in the PDF and you can check the properties by clicking on it.

image

Here’s is the how to movie on how to do a bit more

http://tv.adobe.com/watch/acrobat-x/how-to-digitally-sign-a-document-with-adobe-reader/

Enjoy !

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: