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: 

Single Sign On on Blackberry device calling ABAP Web Service

Former Member
0 Kudos

Hi,

Im developing a BlackBerry app who act like a client of an ABAP Web Service.

Is there any way to use single sign on by the email, pin device or something?

Im using stub generator from wireless toolkit to generate the client classes. How can I enclose a ticket or certificate in the code?

is there any solution to solve all of this?

Thanks in advance.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Inorder to use certificate for authentication you need to do following things.

1) Generate a certificate and get it trusted from a CA. (You can use java's keytool)

2) Export the public key certificate(Base 64) of the corresponding generated certificate to ABAP system keystore.

a) You can install the generated certificate in browser and export the public key (.cer) file from browser itself.

b) Go to your ABAP system transaction 'extid_dn'. import the certificate (.cer) file and map it to corresponding user.

c) Make sure profile parameter 'icm/HTTPS/verify_client' is 1 in your ABAP system

3) Now call HTTPS ABAP webservice from your code using certificate.

Regards,

Dhana

6 REPLIES 6

Former Member
0 Kudos

Hi,

Inorder to use certificate for authentication you need to do following things.

1) Generate a certificate and get it trusted from a CA. (You can use java's keytool)

2) Export the public key certificate(Base 64) of the corresponding generated certificate to ABAP system keystore.

a) You can install the generated certificate in browser and export the public key (.cer) file from browser itself.

b) Go to your ABAP system transaction 'extid_dn'. import the certificate (.cer) file and map it to corresponding user.

c) Make sure profile parameter 'icm/HTTPS/verify_client' is 1 in your ABAP system

3) Now call HTTPS ABAP webservice from your code using certificate.

Regards,

Dhana

0 Kudos

Thanks for your answer, but the app is not Web Dynpro Mobile, is a native app for BB. It calls an ABAP web service. So the browser is not on the scenario.

0 Kudos

Hi,

You dont need browser here. I mentioned here just for exporting and importing the oublic key. You can do it even with java keytool utility.

Regards,

Dhana

0 Kudos

Thanks.

How can I enclose the certificate in the web service calling? Im using a stub generator from java wireless toolkit.

Regards.

0 Kudos

Hi,

1) First install your certificate in a keystore file using java keytool utility. Use the followinf link for help.

http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/keytool.html

2) Then insert the following code snippet just before calling the webservice.

Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());

System.setProperty("javax.net.ssl.trustStore", "C:
Program Files
Java
jdk1.6.0_11
jre
lib
security
cacerts"); " Your file location

System.setProperty("javax.net.ssl.trustStorePassword","pass");

System.setProperty("javax.net.ssl.keyStore", "C:
Program Files
Java
jdk1.6.0_11
jre
lib
security
cacerts"); " Your file location

System.setProperty("javax.net.ssl.keyStorePassword","pass");

System.setProperty("javax.net.ssl.keyStoreProvider","SUN");

System.setProperty("javax.net.debug","all");

Regards,

Dhana

WolfgangJanzen
Product and Topic Expert
Product and Topic Expert
0 Kudos

>

> Im developing a BlackBerry app who act like a client of an ABAP Web Service.

> Is there any way to use single sign on by the email, pin device or something?

>

> Im using stub generator from wireless toolkit to generate the client classes. How can I enclose a ticket or certificate in the code?

> is there any solution to solve all of this?

1st question: what authentication method is demanded by the WS Provider (see WS Endpoint Configuration)?

2nd question: what kind of credentials are available on the WS Consumer (BlackBerry)?

If your BlackBerry is supporting SSL and if you have a X.509 client certificate (plus private key) available there, you could use mutual SSL authentication for SSO - provided that the WebService is configured to accept X.509 client certificates for authentication (via https). (Notice: do not mix up with "X.509 Token" - that relates to message-based authentication / WS-Security).