Reputation: 1234
My Blackberry application is connecting to a web server via HTTPS. However, The SSL certificate of the server is invalid.
I would like to know how to ignore the ssl error on my Blackberry application?
I knew with Android you could overwirte the onReceivedSslError method of Android's api to over come this problem. I don't know if there is some way to do it on Blackberry.
Thanks in advance!
Upvotes: 0
Views: 1584
Reputation: 63
Based on the documentation here http://www.blackberry.com/developers/docs/7.1.0api/javax/microedition/io/Connector.html#tls, I just add ";EndToEndDesired" to the connection string. And it works! :)
Upvotes: 1
Reputation: 2279
I know of several BlackBerry developers who have expressed concerns over this issue.
While the user can adjust her device security settings to not be notified of SSL certificate issues, there doesn't seem to be a way of doing this programmatically from either inside your application through API, nor through some sort of declaration in the application's .jad file.
Upvotes: 2