To access an SAP BAPI exposed as a Web Service from an HTTPS port,
add the same SAP server certificate you imported into the SAP Mobile Server
truststore into an SAP Mobile WorkSpace truststore.
Perform this configuration on the SAP Mobile WorkSpace host, or an
SSL security exception is returned when trying to connect to the connection profile
of the HTTPS WSDL URL.
- Add truststore.jks to the
<SAP Mobile Platform_InstallDir>\MobileSDK<version>\Eclipse
directory.
- Use the Java keytool command to add the same
SAP server certificate you imported into the SAP Mobile Server
truststore into truststore.jks.
- Add this argument to the <SAP Mobile Platform_InstallDir>\MobileSDK<version>\Eclipse\MobileWorkSpace.bat
file:
-Djavax.net.ssl.trustStore=%ECLIPSE_ROOT%\truststore.jks
- Create and run a setup-truststore.bat file that sets up your truststore environment. For example:
copy ..\JDK<version>\jre\lib\security\cacerts truststore.jks
@echo *
@echo * Answer Yes to "Trust this certificate?".
@echo *
keytool -import -keystore truststore.jks -file sap-doe-vm1.sybase.com.PEM.crt -storepass changeit
@echo *
@echo * Add to eclipse vmargs: -Djavax.net.ssl.trustStore=%ECLIPSE_ROOT%\truststore.jks
@echo *
- Restart SAP Mobile WorkSpace.