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: 

JSSE From java class on WAS

Former Member
0 Kudos

Hi all,

I need to do a post to server using HTTPs. I developed a java class using JSSE that calls this service and return that to my application. In my local machine I tested it importing the RSA certificate to the java keystore by default (cacerts) using the keytool.

I need now to deploy it to the WAS creating a EAP with Developer Studio, my question is how to import the certificate. Should I do the same that in my local machine using keytool or is another way?

Thanks in advance,

Diego.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Diego,

a good starting point to search for stuff related to encryption on the wire is in the docs about <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/bc/2ee9a2d023d64eac961745ea2cb503/frameset.htm">Network and transport Layer Security</a>. The service you are searching for is called keystore service. You can find info on how to access that service <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/43/a52f2e63161bbfe10000000a1553f7/frameset.htm">in the keystore docs</a>.

I would however recommend not to use low level JSSE stuff but either the <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/8b/8e7dac1e661d44bf2a676fd3948cc6/frameset.htm">destination service (recommeded)</a> or the ssl client library (<a href="https://help.sap.com/javadocs/NW04S/current/se/index.html">see the JAVADOCS about security for details</a>).

regards,

Patrick

3 REPLIES 3

Former Member
0 Kudos

Hi Diego,

a good starting point to search for stuff related to encryption on the wire is in the docs about <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/bc/2ee9a2d023d64eac961745ea2cb503/frameset.htm">Network and transport Layer Security</a>. The service you are searching for is called keystore service. You can find info on how to access that service <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/43/a52f2e63161bbfe10000000a1553f7/frameset.htm">in the keystore docs</a>.

I would however recommend not to use low level JSSE stuff but either the <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/8b/8e7dac1e661d44bf2a676fd3948cc6/frameset.htm">destination service (recommeded)</a> or the ssl client library (<a href="https://help.sap.com/javadocs/NW04S/current/se/index.html">see the JAVADOCS about security for details</a>).

regards,

Patrick

0 Kudos

Thanks Patrick for the information. I need to do a POST with mime file attachment. To make it simpler I use a java API called HTTPClient that supports this and use JSSE.

I'm going to read about "HTTP destinations" to see if they can attach a file for a POST.

Regards,

Diego.

0 Kudos

Hi Diego,

this may be a bit tricky, if you are using the HTTPClient code of the Jakarta project, you may need to port their connection handler framework to use either the secureconnection factory or the destination service.