Create a digital pdf signature

The following command line steps will create a digital signature that can be used with Pdf Customiser. Please note that this requires that "$":https://www.openssl.org/ has been installed on your system (available by default on Mac OSX and most Linux distributions). 

1.

>openssl req -x509 -nodes -days 365000 -newkey rsa:1024 -keyout pdf-signature.crt -out pdf-signature.crt


Generating a 1024 bit RSA private key
..........++++++
.....++++++
writing new private key to 'pdf-signature.crt'
-----
You are about to be asked to enter information that will be incorporated into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:NZ
State or Province Name (full name) [Some-State]:
Locality Name (eg, city) []:
Organization Name (eg, company) [Internet Widgits Pty Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (e.g. server FQDN or YOUR name) []:
Email Address []:

2. 

>openssl pkcs12 -export -in pdf-signature.crt -out pdf-signature.p12

Enter Export Password:
Verifying - Enter Export Password:

3. 

>openssl

OpenSSL> pkcs12 -in pdf-signature.p12 -out pdf-signature.pem -nodes
Enter Import Password:
MAC verified OK
OpenSSL> exit

4. Copy the contents of the file pdf-signature.pem into the signature field. Also enter the password into the password field if you assigned a password in the above step.

Still need help? Contact Us Contact Us