Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SSL Certificate - File Paths in Java

Former Member
0 Kudos

Hi,

As part of an interface from a Java web-app running on Netweaver, I want to format an SSL connection to an external website. As part of the connection, the external website want the file path to the client SSL certificate (which they provided).

If I store the certifcate as a file within the web-app itself, this is fine.

However, ideally I want to store the certificate using the SAP 'Secure Storage' functionality, so it can be re-used by the SAP-CRM system.

Does this seem a reasonable approach? If so, is it possible to derive the absolute path to a file held within Secure Storage?

Thanks,

John

1 REPLY 1

martin_voros
Active Contributor
0 Kudos

Hi,

it seems reasonable but I don't understand why you want to derive path. There is [java API|http://help.sap.com/saphelp_media472/helpdata/en/2f/aaa1701494c043830b1945264b2624/content.htm] that allows to store and retrieve objects from secure storage. So you should use this API to get certificate before connecting to external system. The object stored in secure storage can be protected by 3DES encryption.

But I would suggest to look at Key Storage. It contains all keys used by Java AS (for example SSL certificate). You can try to create a custom key store and then use [API|http://help.sap.com/saphelp_nw04/helpdata/en/43/a52f2e63161bbfe10000000a1553f7/content.htm] to retrieve it from there.

Cheers