ostiket 1.9.X solucion a STARTTLS failed code: 220, response OK - Venezolana GNU/linux

ostiket 1.9.X solucion a STARTTLS failed code: 220, response OK

 

..en osticket 1.12, 1.10 asi como 1.9 si tiene un sistema de corro fuertemente configurado.. y quiere conectarse localmente (es decir no necesitamos alta seguridad) la configuracion es imposible con localhost aun cuando su puertos estan 100% cerrados y es ILOGICO TANTA SEGURIDAD!!!

El mas ilogico de sus problemas fue "oticket authentication failure [SMTP: STARTTLS failed (code: 220, response: Ok)]",...
El famoso error junto con otros de  "oticket authentication failure [SMTP: STARTTLS failed (code: 220, response: Ok)]", esto es porque ostiket no tomaba en cuenta y asumia mucho.. la solucion a estos errores de configuracion son subsanados con este parche (1.9/1.10, para otras debera adaptarlo puesto no apoyamos modas de "lo ultimo"):
 
diff --git a/include/pear/Net/SMTP.php b/include/pear/Net/SMTP.php
index 8f4e92b..3633ef7 100644
--- a/include/pear/Net/SMTP.php
+++ b/include/pear/Net/SMTP.php
@@ -169,6 +169,9 @@ class Net_SMTP
         $this->socket_options = $socket_options;
         $this->timeout        = $timeout;
 
+        $this->socket_options['ssl']['verify_peer'] = FALSE;
+        $this->socket_options['ssl']['verify_peer_name'] = FALSE;
+
         /* Include the Auth_SASL package.  If the package is available, we
          * enable the authentication methods that depend upon it. */
         if (@include_once 'Auth/SASL.php') {
@@ -573,7 +576,8 @@ class Net_SMTP
                 return $result;
             }
             if (isset($this->socket_options['ssl']['crypto_method'])) {
-                $crypto_method = $this->socket_options['ssl']['crypto_method'];
+                $this->socket_options['ssl']['verify_peer_name'] = FALSE;
+                $crypto_method = 'STREAM_CRYPTO_METHOD_TLS_CLIENT | '. $this->socket_options['ssl']['crypto_method'];
             } else {
                 /* STREAM_CRYPTO_METHOD_TLS_ANY_CLIENT constant does not exist
                  * and STREAM_CRYPTO_METHOD_SSLv23_CLIENT constant is


Esto es porque a partir de php 5.6 las opciones de SSL/TLS son mas estrictas.. https://www.php.net/manual/en/migration56.openssl.php

No hay comentarios.:

Publicar un comentario

DESTACADOS:

El E3 está muerto: ¿quĂ© tamaño tenĂ­a? leyenda para jugadores

E3 (abreviatura de Electronic Entertainment Expo) fue una feria/evento comercial anual para/de la industria de los videojuegos y/o jugadores...