Permitting push applications to make trusted connections to a BlackBerry MDS Connection Service
To permit push applications to open trusted connections to a BlackBerry® MDS Connection Service, you must create a key store (the webserver.keystore file) on the computer that hosts the BlackBerry MDS Connection Service. This key store permits the BlackBerry MDS Connection Service to accept HTTPS connections from push applications.
Push applications can use a BlackBerry MDS Connection Service certificate to open HTTPS connections to the BlackBerry MDS Connection Service to push application data and application updates to the BlackBerry devices that are assigned to that BlackBerry MDS Connection Service.
You can use the Java® keytool to create a self-signed certificate for the BlackBerry MDS Connection Service, or you can import a signed certificate from a trusted public certification authority. You can use the Java keytool to export the BlackBerry MDS Connection Service certificate from the key store, and import the certificate to the key stores that the Java push applications use.
For more information about using the Java keytool, visit java.sun.com/javase/6/docs/technotes/tools/windows/keytool.html. For more information about the Apache Tomcat™ requirements, visit tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html.
Create a key store to store certificates for use with HTTPS connections
- On the computer that hosts the BlackBerry MDS Connection Service, on the taskbar, click Start > Programs > BlackBerry Enterprise Server > BlackBerry Server Configuration.
- On the Mobile Data Service tab, configure the key store information. Only one key store can exist. The file must be named webserver.keystore and it must be located at <drive>:\Program Files\Research In Motion\BlackBerry Enterprise Server\MDS\webserver.
- Click Create Keystore File.
- If prompted to overwrite a key store, click Yes.
- Click OK.
Add a certificate for the BlackBerry MDS Connection Service
- On the computer that hosts the BlackBerry MDS Connection Service, navigate to <drive>:\Program Files\Java\<JRE_version>\bin.
- At the command prompt, perform one of the following tasks:
Task Steps Create a self-signed certificate for the BlackBerry MDS Connection Service and add it to the key store. Add a publicly signed certificate to the key store. - Copy the key store file to <drive>:\Program Files\Research In Motion\BlackBerry Enterprise Server\MDS\webserver.
Export the BlackBerry MDS Connection Service certificate to make it available to push applications
- On the computer that hosts the BlackBerry MDS Connection Service, navigate to <drive>:\Program Files\Java\<JRE_version>\bin.
- At the command prompt, type keytool -export -alias tomcat -file <server.cer> -keystore <drive>:\Program Files\Research In Motion\BlackBerry Enterprise Server\MDS\webserver\webserver.keystore -storepass <password>.
- Type the key store password.
Import the BlackBerry MDS Connection Service certificate to the key store of a push application
- On the computer that hosts the BlackBerry MDS Connection Service, navigate to <drive>:\Program Files\Java\<JRE_version>\bin.
- At a command prompt, type keytool -import -trustcacerts -alias <alias> -file <server.cer> -keystore <application_keystore>.
- Type the key store password.
- To add the certificate to the key store, at the prompt, type Yes.