Configure the proxy generator to access the key store

You can configure the wsdl2java.bat proxy generator to use the key store that you created to verify that the development BlackBerry® Enterprise Server uses a valid certificate.
  1. In the bin folder of Apache CXF™, for example C:\Program Files\apache-cxf-2.1.2\bin\, locate the wsdl2java.bat file.
  2. Open the wsdl2java.bat file in a text editor.
  3. Locate the following line:
    "%JAVA_HOME%\bin\java" -cp "%CXF_JAR%;%SUN_TOOL_PATH%;%CLASSPATH%" -Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties" org.apache.cxf.tools.wsdlto.WSDLToJava %*
  4. After "%JAVA_HOME%\bin\java", type the parameters -Djavax.net.ssl.trustStorePassword=<password> and -Djavax.net.ssl.trustStore="<path>\bas.keystore" where <password> is the key store password that you chose when you created the key store, and <path> is the path of the folder that you moved your key store to.
    "%JAVA_HOME%\bin\java" -Djavax.net.ssl.trustStorePassword=password -Djavax.net.ssl.trustStore="C:\Program Files\Java\jre6\bin\bas.keystore" -cp "%CXF_JAR%;%SUN_TOOL_PATH%;%CLASSPATH%" -Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties" org.apache.cxf.tools.wsdlto.WSDLToJava %*
    
  5. Save and close the file.
Previous topic: Generate a key store

Was this information helpful? Send us your comments.