Not possible to add account on server with invalid certificate (#154)
Andrzej Wójcik (Tigase) opened 1 decade ago

It is not possible to add/register account on server with invalid certificate. Exception from certificate validation causes authentication failure and blocks possibility of adding an account.

ll chen commented 1 decade ago

in org.tigase.mobile.authenticator.AuthenticatorActivity.UserCreateAccountTask.doInBackground method,I add code at 125 line like below:

        contact.addListener(Connector.Error,
                    new Listener<ConnectorEvent>() {
                        @Override
                        public void handleEvent(ConnectorEvent be)
                                throws JaxmppException {
                            if (be.getType() == Connector.Error
                                    && be.getCaught() != null) {
                                Throwable throwable = extractCauseException(be
                                        .getCaught());
                                if (throwable instanceof SecureTrustManagerFactory.DataCertificateException) {
                                    certException = (DataCertificateException) throwable;
                                    data.put("account", contact
                                            .getSessionObject()
                                            .getUserBareJid().toString());

                                }
                            }
                        }
                    });

and fix this problem.

issue 1 of 1
Type
Bug
Priority
Blocker
Assignee
RedmineID
919
Issue Votes (0)
Watchers (0)
Reference
tigase/_clients/stork#154
Please wait...
Page is in error, reload to recover