hrugani
hrugani

Reputation: 477

How to sign electronically a PDF document using digital certificates in codenameone

In our System, we generate PDF documents and we need to sign them using a digital certificate from the user.

How to do that in codenameone? Do you have pieces of knowledge that could share here about this subject (using mobile devices)?

Upvotes: 1

Views: 93

Answers (1)

rmhrisk
rmhrisk

Reputation: 1856

I am not familiar with Code Name One but it seems it allows cross-platform development based on a Java code base. If so it seems probable they will let you call out to third-party Java libraries, as such if you intend to do a signing on the phone you probably want to look at iText's Java library (https://itextpdf.com/). The logic you need does exist in free libraries but if your looking for something turnkey then this is probably the easiest Java solution out there.

The other thing is if you intend to do signing you, of course, need key material to do that signing. It sounds like you want to do signing on each mobile device so you have to decide how you will authenticate each device, what information goes into the certificates and work out how you get those certificates. Most CAs will entertain some sort of agreement for client certificates that you would use for this purpose.

You can, of course, opt to use a service also, one I make is called Hancock (hancock.ink), you would use it in a Web View and just pass it the PDF you want signed and the rest would be taken care of for you.

Upvotes: 1

Related Questions