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?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Torsten,

Did you solved this issue ? I have now the same task/problem. Could you share please any clue. How can I get this thing done ?

Best regards!

Tomek

Former Member
0 Kudos

Hi,

You can refer the following,

Link:[http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/e0fbaa71-cd8d-2910-5982-e30626035400]

Link:[http://help.sap.com/saphelp_nw70/helpdata/en/18/ecb69017ad4765855425b97f666470/content.htm]

Link:[http://www.sapfans.com/forums/viewtopic.php?f=13&t=346498]

Link:[http://www.saptechies.com/digital-signature-for-form-16/]

Thanks,

Renuka S.

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.