cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a signature and Encrypt the file

Former Member
0 Kudos

Hi Experts,

I have an requirement, I need to create a module in which I need to pass four values (Namely signing key, signing algorithm, encyption key and encryption algorithm) through parameters as inputs. Based on these parameters, I need to create the signature for the input xml file and I have to encrypted the file. Please Guide me. Give some useful links, documents or codes to how to do this. Help me in this regard.

Thanks in Advance,

Venkatesh.K

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Digitally signing of messages is possible by using cryptographic toolkits.

All required java programs are imported as archives into XI. Java mapping is written utilizing the imported java archives which actually performs the digital signature creation for the outgoing messages from XI and digital signature verification for the incoming messages to XI.

refer

SAP Network Blog: Using Digital Signatures in XI

/people/sap.user72/blog/2005/06/16/using-digital-signatures-in-xi

SAP Network Blog: How to use Digital Certificates for Signing & Encrypting Messages in XI

/people/varadharajan.krishnasamy/blog/2007/05/11/how-to-use-digital-certificates-for-signing-encrypting-messages-in-xi

SAP Network Blog: How XML Encryption can be done using web services security in SAP NetWeaver XI

/people/aparna.chaganti2/blog/2007/01/23/how-xml-encryption-can-be-done-using-web-services-security-in-sap-netweaver-xi

You may also use the SAP cryptographic toolkit available from SAP market place for signing encrypting. See i.e. http://help.sap.com/saphelp_nw04/helpdata/en/4f/65c3b32107964996a56e4165077e24/frameset.htm

Decryption of Message after processing by File adapter

https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&content=https%3A//forums.sdn.sap.com/t...

Ensure the Confidentiality of Your SOAP Message Content: XML Encryption Using Web Services Security in SAP NetWeaver Exchange Infrastructure

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0650f56-7587-2910-7c99-e1b6ffbe...

Digital Signatures in SAP Applications

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40f6fee6-9316-2a10-d2a9-954d4df7...

Best Practices for Digital Signatures

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/55ba9790-0201-0010-aa98-ce8f51ea...

Thanks

Swarup

Edited by: Swarup Sawant on Apr 4, 2008 2:02 PM

Answers (1)

Answers (1)

Former Member
0 Kudos

which type of signature do you need to generate?

XML? PKCS7?? SMIME??

What is the requiremenet on the encryption??? Pls elaborate.

These all features are available with SAP SSF APIs for Java. search your NWDS installation for keystore_api.jar & tc_sec_ssf.jar before you try to use it in your programs, you can refer to the below link for sample code.

http://help.sap.com/saphelp_nw04/helpdata/en/a4/d0201854fb6a4cb9545892b49d4851/frameset.htm

Former Member
0 Kudos

Hi Amol,

I need to generate the signature based on SMIME type. My requirement is, I need to sign a document (based on Signing algorithm ) and encrypt (based on the Encryption Algorithm) that file. I'll pass this signing and encryption algorithm as parameters to the module for signing and encryption for that document.

Please tell me where I can get this keystore_api.jar file.

I have already gone through this [SAP Help|http://help.sap.com/saphelp_nw04/helpdata/en/a4/d0201854fb6a4cb9545892b49d4851/content.htm], there is no indication where they are mentioning signing and encryption algorithm. Please help me in this regard.

Thanks in Advance,

Venkatesh. K

ADIDAS
Participant
0 Kudos

Hi Venkatesh,

Did the get the two file keystore_api.jar & tc_sec_ssf.jar. Can you point me to the Installtion file level where they are present.

Regards,

Arunava

Former Member
0 Kudos

Hi,

You can get this two jar files from your XI server in the following locations:

\usr\sap\<SID>\DVEBMGS10\j2ee\cluster\dispatcher\bin\interfaces\keystore_api

\usr\sap\<SID>\DVEBMGS10\j2ee\cluster\server0\bin\ext\security.class

Regards,

Venkatesh. K