xmpp icon indicating copy to clipboard operation
xmpp copied to clipboard

error:14077102:SSL routines:SSL23_GET_SERVER_HELLO:unsupported protocol

Open Tpona opened this issue 9 years ago • 2 comments

Hi! I get this error on local machine under xampp server. Allows your library set option for disable crypto?

Thx.

Tpona avatar Sep 03 '15 15:09 Tpona

Crypto is activated if the server says it's supported. You can't force to disable crypto, but you can remove the StartTls from the EventManager.

fabiang avatar May 23 '17 12:05 fabiang

That's how one could implement that in the most naive and harmless way:


use Fabiang\Xmpp\EventListener\EventListenerInterface;
use Fabiang\Xmpp\EventListener\Stream\StartTls;
use Fabiang\Xmpp\Protocol\DefaultImplementation;

class DefaultImplementationWithoutStarttls extends DefaultImplementation
{
    public function registerListener(EventListenerInterface $eventListener)
    {
        if ($eventListener instanceof StartTls) {
            return;
        }

        parent::registerListener($eventListener);
    }
}

then pass it to the options:

$options->setImplementation(new DefaultImplementationWithoutStarttls());

zerkms avatar Nov 05 '17 21:11 zerkms