> From: rbga...@gmail.com
> Date: Mon, 25 May 2015 07:16:13 -0300
> To: freebsd@fug.com.br
> Subject: Re: [FUG-BR] [OFF] Jabber terminal
> 
> > On May 24, 2015, at 15:31, Samuel . <lista.freebsd.bra...@outlook.com> 
> > wrote:
> > 
> > Pessoal,
> > alguém aqui usa jabber pra monitoramento? Qual pacote estão usando?
> > 
> > Tentei usar o sendxmpp no Linux e funcionou numa boa.
> > Tentei rodar o sendxmpp no FreeBSD 10.1 STABLE mas tá dando um maldito erro 
> > de SSL.
> > root@fsbd:~ # echo "teste" | sendxmpp -t usuario@servidor.jabber.comInvalid 
> > or unreadable path specified for ssl_ca_path. at 
> > /usr/local/lib/perl5/site_perl/XML/Stream.pm line 640.
> > 
> > Entre a linha 630 e 640 tem o seguinte código:
> > 630     # Set ssl_params for newconnection ssl or tls is set 631     if (   
> > 1 == $self->{SIDS}->{newconnection}->{ssl} 632         || 1 == 
> > $self->{SIDS}->{newconnection}->{_tls} ) 633     { 634         my 
> > %ssl_params = ( 635             SSL_verify_mode => 
> > $self->{SIDS}->{newconnection}->{ssl_verify}, 636         ); 637  638       
> >   if ( 0x00 != $self->{SIDS}->{newconnection}->{ssl_verify} ) 639         { 
> > 640             die ("Invalid or unreadable path specified for 
> > ssl_ca_path.")
> > 
> > 
> > 
> > Primeiro instalei via pkg, como não tive sucesso, desinstalei e instalei 
> > via ports, mesma mer@#$%%.
> > 
> > Se algum puder me ajudar, meu muito obrigado antecipado..
> 
> Olhando por cima o bug me parece estar no pacote p5-XML-Stream. Antes de 
> qualquer outra coisa. Algum diretório setado como ca_path não existe no seu 
> sistema.
> 
> O sendxmpp deve ter alguma opção de debug e/ou verbose. Tente habilitar essa 
> opção e ele deverá imprimir no STDERR o path passado no parâmetro ca_path, aí 
> vai dar pra entender melhor o que tá acontecendo.
> 
> Eu acredio que ele deva buscar o caminho do ca_path em /etc/ssl enquanto o 
> default do pacote ca-root-nss é instalar apenas em /usr/local/etc/ssl. Se for 
> isso vc pode mudar no config do sendxmpp pra buscar no lugar correto ou 
> instalar o ca_root_nss via ports com a opção pra criar o link em /etc.
> 
> []s
> --
> Renato Botelho
> 
> -------------------------
> Histórico: http://www.fug.com.br/historico/html/freebsd/
> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


Olá Renato! Obrigado por responder!
Rodei o mesmo comando com a opção debug, acho que não retornou algo que possa 
ajudar.
root@fbsd:~ # echo "teste" | sendxmpp -d -t usuario@server-jabber.comsendxmpp: 
config: 'username' => 'zabbix'sendxmpp: config: 'jserver' => 
'XXXXXXXXXXXXXX'Use of uninitialized value $val in concatenation (.) or string 
at /usr/local/bin/sendxmpp line 192.sendxmpp: config: 'component' => 
''sendxmpp: config: 'password' => 'XXXXXXXXXXXXX'sendxmpp: config: 'port' => 
'0'XML::Stream: new: hostname = (XXXX)XML::Stream: SetCallBacks: tag(node) 
func(CODE(0x801caa5a0))Att, 
Samuel .XMPP::Conn: xmppCallbackInit: startXMPP::Conn: SetCallBacks: 
tag(message) func(CODE(0x801caa258))XMPP::Conn: SetCallBacks: tag(presence) 
func(CODE(0x80504d9f0))XMPP::Conn: SetCallBacks: tag(iq) 
func(CODE(0x801caa450))XMPP::Conn: SetPresenceCallBacks: type(subscribed) 
func(CODE(0x801caa0a8))XMPP::Conn: SetPresenceCallBacks: type(unsubscribed) 
func(CODE(0x805059c60))XMPP::Conn: SetPresenceCallBacks: type(unsubscribe) 
func(CODE(0x804b75de0))XMPP::Conn: SetPresenceCallBacks: type(subscribe) 
func(CODE(0x805059348))XMPP::Conn: SetDirectXPathCallBacks: 
xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-tls"]) 
func(CODE(0x801c9bfa8))XMPP::Conn: SetDirectXPathCallBacks: 
xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-sasl"]) 
func(CODE(0x80504deb8))XMPP::Conn: xmppCallbackInit: stopsendxmpp: ssl_verify: 
1sendxmpp: tls_ca_path: XMPP::Conn: Connect: host(XXXXXXXXXXXX:5222) 
namespace(jabber:client)XMPP::Conn: Connect: timeout(10)XML::Stream: Connect: 
type(tcpip)Invalid or unreadable path specified for ssl_ca_path. at 
/usr/local/lib/perl5/site_perl/XML/Stream.pm line 640.root@fbsd:~ #

Pelo Linux só foi "apt-get install sendxmpp" e "echo "teste" | sendxmpp -t 
usua...@server-jabber.com" e pimba! Funcionou...










                                          
-------------------------
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd

Responder a