xmpp
xmpp copied to clipboard
error:14077102:SSL routines:SSL23_GET_SERVER_HELLO:unsupported protocol
Hi! I get this error on local machine under xampp server. Allows your library set option for disable crypto?
Thx.
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.
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());