cancel
Showing results for 
Search instead for 
Did you mean: 

signing pdf document add-on/module for alfresco 23

darkokrstevski-kontego
Champ on-the-rise
Champ on-the-rise

Hi,

I have Alfresco v23.2 and I need a solution to sign PDF documents. I have tried PDF toolkit (v1.4.0) and esign-cert (v1.8.2) but without any success as Alfresco application does not start, in both cases.

Could you please, suggest an add-on or module compatible with my setup?

Thanks in advance.

Kind Regards, Darko

2 ACCEPTED ANSWERS

HelloKittyCatSw
Champ on-the-rise
Champ on-the-rise

Hello, I currently use alfresco 23.2 too and I face the same problem. In Github, I find this project: https://github.com/abraira85/alfresco-pdf-sign.

Although according to his description, perhaps this project only supports alfresco 7.4, I have already run this amp in my alfresco. However, I did'nt find out how to use this signature tool. You could have a try.

View answer in original post

As I tried, my environment is Ubuntu 22.04, and I used "openssl" tool to generate private key with ".p12" format, which was compatible with alfresco-pdf-sign project. And the prequisite condition is that you already configure Java in your system, also make sure these two softwares are compatible.

HelloKittyCatSw_0-1733362054624.png

  • Use this command to generate private key: 

    openssl genpkey -algorithm RSA -out private_key.pem -aes256

  • Use this command to generate public key:

    openssl genpkey -algorithm RSA -out private_key.pem -aes256

  • Use this command to generate certificate:

    openssl genpkey -algorithm RSA -out private_key.pem -aes256

  • Use this command to create keystore:

    openssl pkcs12 -export -in mycert.pem -inkey private_key.pem -out keystore.p12

  • Then upload keystore.p12 file into your alfresco. When signing a document, just choose this file. I'm not sure which password I input is password and which one is keystore password, so I simply use the same.

View answer in original post

5 REPLIES 5

HelloKittyCatSw
Champ on-the-rise
Champ on-the-rise

Hello, I currently use alfresco 23.2 too and I face the same problem. In Github, I find this project: https://github.com/abraira85/alfresco-pdf-sign.

Although according to his description, perhaps this project only supports alfresco 7.4, I have already run this amp in my alfresco. However, I did'nt find out how to use this signature tool. You could have a try.

I'm gladly to tell you that I successfully integrate this project with my alfresco. When signing a document, you should upload a private key(namely in the format of pcks12), then you can tag it fluently. And you don't worry about several signature may ruin a document from its origin looking, it can create different version automatically. This project is worth using!

By the way, of course a bigger signature will enlarge the document size more.😁

 

HelloKittyCatSw_1-1733298924420.png

HelloKittyCatSw_2-1733298948397.png

 

darkokrstevski-kontego
Champ on-the-rise
Champ on-the-rise

Hi,

I've successfully installed the module and the signing option appeared as shown in the screenshot. Thank you very much @HelloKittyCatSw . 

Now I have to find out how to create a private key and import it into Alfresco.

As I tried, my environment is Ubuntu 22.04, and I used "openssl" tool to generate private key with ".p12" format, which was compatible with alfresco-pdf-sign project. And the prequisite condition is that you already configure Java in your system, also make sure these two softwares are compatible.

HelloKittyCatSw_0-1733362054624.png

  • Use this command to generate private key: 

    openssl genpkey -algorithm RSA -out private_key.pem -aes256

  • Use this command to generate public key:

    openssl genpkey -algorithm RSA -out private_key.pem -aes256

  • Use this command to generate certificate:

    openssl genpkey -algorithm RSA -out private_key.pem -aes256

  • Use this command to create keystore:

    openssl pkcs12 -export -in mycert.pem -inkey private_key.pem -out keystore.p12

  • Then upload keystore.p12 file into your alfresco. When signing a document, just choose this file. I'm not sure which password I input is password and which one is keystore password, so I simply use the same.

darkokrstevski-kontego
Champ on-the-rise
Champ on-the-rise

Hi,

Thanks again, @HelloKittyCatSw . I've created p12 key from certificate and private key and uploaded it as a regular file to Alfresco.