cancel
Showing results for 
Search instead for 
Did you mean: 

Digital Signature on PDF

weltspion
Participant
0 Kudos

Hi Folks!

I'd like to digitally sign a PDF document out of an ABAP program or class, just to ensure that the document was not modified by anyone.

In my program I hold the PDF as a binary stream in a XSTRING variable. I convert it into a binary table and use the function module 'SSF_KRN_SIGN_BY_AS' to sign this binary stream. In general, this is working fine (validating it with function module 'SSF_KRN_VERIFY' is successful).

But if I open the generated file with Acrobat Reader, no signature is found.

Obviously it does not work to sign the binary directly, as I did.

How can I create a digital signature on PDFs using ABAP? Do I have to convert it into ASCII or so before? Or: How must a signature be attached to a PDF file?

Our release is 620. Every little hint is appreciated.

Regards,

Torsten

sunnaha
Discoverer
0 Kudos

Hi Renuka,

The link you provided is not working. Could you please help me by providing a working link or pasting your code if possible?

View Entire Topic
mamartins
Active Contributor
0 Kudos

To digitally sign a document you have 2 options: use an internal SAP Netweaver JAVA instance with ADS or use an external service commercially available (there are dozens out there).

You will need to import a valid certificate signed by a globally accepted CA (Digicert, ...) on the JAVA instance and use an HTTPS RFC from the ABAP to the JAVA instance:

https://help.sap.com/doc/saphelp_nw74/7.4.16/en-US/4b/95ae7626f26e83e10000000a421937/content.htm?no_...

3298729 - SSL connection between ABAP and ADS - Guided Answers

sunnaha
Discoverer
0 Kudos
Hi, Thanx for the reply, Instead of using ADS for Adobe Form, I want to sign the PDF by uploading it using a PFX certificate.