Hello, I'm trying to configure the communication between agents and tentacle server with ssl. I followed the informations below to setup the tentacle server with SSL. https://wiki.pandorafms.com/index.php?title=Pandora:QuickGuides\_EN:Secure\_communication\_with\_tentacle#Configure\_Tentacle\_to\_include\_security\_options When I perform the test by using manual command everything works fine. When I setup the configuration files with server_opts I get an error. I'm trying with the pandora fms server agent. Manual command for the server : sudo -u pandora tentacle_server -x pandora -e /etc/pki/tls/certificats/tentacle.pem -k /etc/pki/tls/certificats/tentacle.pem -f /etc/pki/tls/cert.pem -s /tmp -V Manual command for the client : sudo -u pandora tentacle_client -a X.X.X.X -x pandora -e /etc/pki/tls/certificats/tentacle.pem -k /etc/pki/tls/certificats/tentacle.pem -v /bin/ls Result for manual commands : 2018-10-30 16:02:28[log]SSL started for X.X.X.X. 2018-10-30 16:02:28[log]Client X.X.X.X authenticated. 2018-10-30 16:02:28[info]Request to send file 'ls' size 117672b from X.X.X.X. 2018-10-30 16:02:28[log]File 'ls' size 117672b from X.X.X.X already exists. 2018-10-30 16:02:28[info]Connection closed from X.X.X.X. When I used the conf file : pandora_agent.conf : server_opts "-x pandora -e /home/tentacle.pem -k /home/tentacle.pem" tentacle_server.conf: ########################################################################## # Tentacle Server Parameters # See https://wiki.pandorafms.com/index.php?title=Pandora:Documentation\_en:Tentacle # for protocol description. # Tentacle have IANA assigned port tpc/41121 as official port. ########################################################################## # [-a] IPv4 address to listen on. Several IPs cam be selected separating if by comma. addresses X.X.X.X # [-p] Port to listen on port 41121 # [-c] Maximum number of simultaneous connections # max_connections 10 # [-d] Run as daemon. 1 true, 0 false daemon 1 # [-i] Enable insecure mode # insecure 0 # Filters (regexp:dir;regexp:dir...) filters .*.conf:conf;.*.md5:md5;.*.zip:collections;.*.lock:trans # [-m] Maximum file size allowed by the server in bytes #max_size 2000000 # [-o] Accept files with a repeated name # overwrite 0 # [-q] Do not output error messages. # quiet 0 # [-r] Number of retries for socket read/write operations # retries 3 # [-s] Storage directory directory /var/spool/pandora/data_in # [-b] Address to proxy client requests to # proxy_ip 127.0.0.1 # [-g] Port to proxy client requests to # proxy_port 41121 # [-t] Timeout for socket read/write operations in seconds # timeout 1 # [-v and -V] Verbose level # 0: Do not display any informative messages # 1: Display only important messages [-v] # 2: Display all messages [-V] verbose 2 # [-l] Log file log_file /var/log/tentacle/tentacle.log # [-x] Server password password pandora # [-e] SSL certificate file full path ssl_cert /etc/pki/tls/certificats/tentacle.pem # [-f] SSL CA file full path ssl_ca /etc/pki/tls/cert.pem # [-k] SSL private key file ssl_key /etc/pki/tls/certificats/tentacle.pem # [-w] SSL password. Set to 1 to ask for password by command line # ssl_password 0 # [-T] Use libwrap library (Authen::Libwrap perl module) # use_libwrap 0 pandora_agent.log : 2018/10/30 17:17:36 - [error] - Error sending file '/tmp/nom_srv.1540895841.data' to 'nom_srv:41121': [err] SSL connect attempt failed because of handshake problems error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure If someone could help me setup SSL on tentacle server. If more conf file is needed just ask and I will post them. Thank you for the help. Josselin.
[SOLVED] Tentacle Server communication with SSL
jlepetit · 30 oct 2018, 20:18 · 4 mensajes · 93 visitas
- Inicio del debate
Hello, I'm trying to configure the communication between agents and tentacle server with ssl. I followed the informations below to setup the tentacle server with SSL. https://wiki.pandorafms.com/index.php?title=Pandora:QuickGuides\_EN:Secure\_communication\_with\_tentacle#Configure\_Tentacle\_to\_include\_security\_options When I perform the test by using manual command everything works fine. When I setup the configuration files with server_opts I get an error. I'm trying with the pandora fms server agent. Manual command for the server : sudo -u pandora tentacle_server -x pandora -e /etc/pki/tls/certificats/tentacle.pem -k /etc/pki/tls/certificats/tentacle.pem -f /etc/pki/tls/cert.pem -s /tmp -V Manual command for the client : sudo -u pandora tentacle_client -a X.X.X.X -x pandora -e /etc/pki/tls/certificats/tentacle.pem -k /etc/pki/tls/certificats/tentacle.pem -v /bin/ls Result for manual commands : 2018-10-30 16:02:28[log]SSL started for X.X.X.X. 2018-10-30 16:02:28[log]Client X.X.X.X authenticated. 2018-10-30 16:02:28[info]Request to send file 'ls' size 117672b from X.X.X.X. 2018-10-30 16:02:28[log]File 'ls' size 117672b from X.X.X.X already exists. 2018-10-30 16:02:28[info]Connection closed from X.X.X.X. When I used the conf file : pandora_agent.conf : server_opts "-x pandora -e /home/tentacle.pem -k /home/tentacle.pem" tentacle_server.conf: ########################################################################## # Tentacle Server Parameters # See https://wiki.pandorafms.com/index.php?title=Pandora:Documentation\_en:Tentacle # for protocol description. # Tentacle have IANA assigned port tpc/41121 as official port. ########################################################################## # [-a] IPv4 address to listen on. Several IPs cam be selected separating if by comma. addresses X.X.X.X # [-p] Port to listen on port 41121 # [-c] Maximum number of simultaneous connections # max_connections 10 # [-d] Run as daemon. 1 true, 0 false daemon 1 # [-i] Enable insecure mode # insecure 0 # Filters (regexp:dir;regexp:dir...) filters .*.conf:conf;.*.md5:md5;.*.zip:collections;.*.lock:trans # [-m] Maximum file size allowed by the server in bytes #max_size 2000000 # [-o] Accept files with a repeated name # overwrite 0 # [-q] Do not output error messages. # quiet 0 # [-r] Number of retries for socket read/write operations # retries 3 # [-s] Storage directory directory /var/spool/pandora/data_in # [-b] Address to proxy client requests to # proxy_ip 127.0.0.1 # [-g] Port to proxy client requests to # proxy_port 41121 # [-t] Timeout for socket read/write operations in seconds # timeout 1 # [-v and -V] Verbose level # 0: Do not display any informative messages # 1: Display only important messages [-v] # 2: Display all messages [-V] verbose 2 # [-l] Log file log_file /var/log/tentacle/tentacle.log # [-x] Server password password pandora # [-e] SSL certificate file full path ssl_cert /etc/pki/tls/certificats/tentacle.pem # [-f] SSL CA file full path ssl_ca /etc/pki/tls/cert.pem # [-k] SSL private key file ssl_key /etc/pki/tls/certificats/tentacle.pem # [-w] SSL password. Set to 1 to ask for password by command line # ssl_password 0 # [-T] Use libwrap library (Authen::Libwrap perl module) # use_libwrap 0 pandora_agent.log : 2018/10/30 17:17:36 - [error] - Error sending file '/tmp/nom_srv.1540895841.data' to 'nom_srv:41121': [err] SSL connect attempt failed because of handshake problems error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure If someone could help me setup SSL on tentacle server. If more conf file is needed just ask and I will post them. Thank you for the help. Josselin.
Good morning jlepetit, Try to change in the pandora_agent.conf the PATH of the certificates to the " /etc/pki/tls/certificats/tentacle.pem" as you just used in the manual way. The "/home/tentaclecert.perm" of the wiki is just to orientate you to put the correct PATH. Try with this change and tell us what happens. Alberto
Hello, I'm trying to configure the communication between agents and tentacle server with ssl. I followed the informations below to setup the tentacle server with SSL. https://wiki.pandorafms.com/index.php?title=Pandora:QuickGuides\_EN:Secure\_communication\_with\_tentacle#Configure\_Tentacle\_to\_include\_security\_options When I perform the test by using manual command everything works fine. When I setup the configuration files with server_opts I get an error. I'm trying with the pandora fms server agent. Manual command for the server : sudo -u pandora tentacle_server -x pandora -e /etc/pki/tls/certificats/tentacle.pem -k /etc/pki/tls/certificats/tentacle.pem -f /etc/pki/tls/cert.pem -s /tmp -V Manual command for the client : sudo -u pandora tentacle_client -a X.X.X.X -x pandora -e /etc/pki/tls/certificats/tentacle.pem -k /etc/pki/tls/certificats/tentacle.pem -v /bin/ls Result for manual commands : 2018-10-30 16:02:28[log]SSL started for X.X.X.X. 2018-10-30 16:02:28[log]Client X.X.X.X authenticated. 2018-10-30 16:02:28[info]Request to send file 'ls' size 117672b from X.X.X.X. 2018-10-30 16:02:28[log]File 'ls' size 117672b from X.X.X.X already exists. 2018-10-30 16:02:28[info]Connection closed from X.X.X.X. When I used the conf file : pandora_agent.conf : server_opts "-x pandora -e /home/tentacle.pem -k /home/tentacle.pem" tentacle_server.conf: ########################################################################## # Tentacle Server Parameters # See https://wiki.pandorafms.com/index.php?title=Pandora:Documentation\_en:Tentacle # for protocol description. # Tentacle have IANA assigned port tpc/41121 as official port. ########################################################################## # [-a] IPv4 address to listen on. Several IPs cam be selected separating if by comma. addresses X.X.X.X # [-p] Port to listen on port 41121 # [-c] Maximum number of simultaneous connections # max_connections 10 # [-d] Run as daemon. 1 true, 0 false daemon 1 # [-i] Enable insecure mode # insecure 0 # Filters (regexp:dir;regexp:dir...) filters .*.conf:conf;.*.md5:md5;.*.zip:collections;.*.lock:trans # [-m] Maximum file size allowed by the server in bytes #max_size 2000000 # [-o] Accept files with a repeated name # overwrite 0 # [-q] Do not output error messages. # quiet 0 # [-r] Number of retries for socket read/write operations # retries 3 # [-s] Storage directory directory /var/spool/pandora/data_in # [-b] Address to proxy client requests to # proxy_ip 127.0.0.1 # [-g] Port to proxy client requests to # proxy_port 41121 # [-t] Timeout for socket read/write operations in seconds # timeout 1 # [-v and -V] Verbose level # 0: Do not display any informative messages # 1: Display only important messages [-v] # 2: Display all messages [-V] verbose 2 # [-l] Log file log_file /var/log/tentacle/tentacle.log # [-x] Server password password pandora # [-e] SSL certificate file full path ssl_cert /etc/pki/tls/certificats/tentacle.pem # [-f] SSL CA file full path ssl_ca /etc/pki/tls/cert.pem # [-k] SSL private key file ssl_key /etc/pki/tls/certificats/tentacle.pem # [-w] SSL password. Set to 1 to ask for password by command line # ssl_password 0 # [-T] Use libwrap library (Authen::Libwrap perl module) # use_libwrap 0 pandora_agent.log : 2018/10/30 17:17:36 - [error] - Error sending file '/tmp/nom_srv.1540895841.data' to 'nom_srv:41121': [err] SSL connect attempt failed because of handshake problems error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure If someone could help me setup SSL on tentacle server. If more conf file is needed just ask and I will post them. Thank you for the help. Josselin.
Good morning jlepetit, Try to change in the pandora_agent.conf the PATH of the certificates to the " /etc/pki/tls/certificats/tentacle.pem" as you just used in the manual way. The "/home/tentaclecert.perm" of the wiki is just to orientate you to put the correct PATH. Try with this change and tell us what happens. Alberto
Hello Alberto, I already tried but I made the changes. Same results in the tentacle.log. pandora_agent.conf: # Extra options for the Tentacle client (for example: server_opts -v -r 5). server_opts "-x pandora -e /etc/pki/tls/certificats/tentacle.pem -k /etc/pki/tls/certificats/tentacle.pem" Certificate Folder: [root@fms ~]# ls -al /etc/pki/tls/certificats/ total 40 drwxr-xr-x 2 root root 111 30 oct. 11:47 . drwxr-xr-x. 6 root root 100 30 oct. 13:49 .. -rw-r--r-- 1 root root 4212 23 oct. 14:55 fms.crt -rw-r--r-- 1 root root 3292 23 oct. 14:54 fms.key -rw-r--r-- 1 root root 7508 23 oct. 15:05 fms.pem -rw-r--r-- 1 root root 4148 30 oct. 11:36 tentacle.crt -rw-r--r-- 1 root root 3243 30 oct. 11:37 tentacle.key -rw-r--r-- 1 root root 7392 30 oct. 11:45 tentacle.pem [root@fms ~]# tail -f /var/log/tentacle/tentacle.log 2018-10-31 11:12:24[info]Client connected from X.X.X.X. 2018-10-31 11:12:24[err]SSL accept attempt failed error:140890C7:SSL routines:ssl3_get_client_certificate:peer did not return a certificate 2018-10-31 11:12:25[info]Client connected from X.X.X.X. 2018-10-31 11:12:25[err]SSL accept attempt failed error:140890C7:SSL routines:ssl3_get_client_certificate:peer did not return a certificate 2018-10-31 11:12:25[info]Client connected from X.X.X.X. 2018-10-31 11:12:25[err]SSL accept attempt failed error:140890C7:SSL routines:ssl3_get_client_certificate:peer did not return a certificate 2018-10-31 11:12:25[info]Client connected from X.X.X.X. 2018-10-31 11:12:25[err]SSL accept attempt failed error:140890C7:SSL routines:ssl3_get_client_certificate:peer did not return a certificate 2018-10-31 11:12:26[info]Client connected from X.X.X.X. 2018-10-31 11:12:26[err]SSL accept attempt failed error:140890C7:SSL routines:ssl3_get_client_certificate:peer did not return a certificate pandora_agent.log : 2018/10/31 12:49:09 - [error] - Error sending file '/tmp/nom_srv.1540986429.data' to 'nom_srv:41121': [err] SSL connect attempt failed because of handshake problems error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure If you have an idea of what I'm doing wrong. Thanks in advance. Josselin.
Hello Guys, My problem is solved. Below my mistakes : I sets parameters for external_opts in /etc/tentacle/tentacle_server.conf and I edited /etc/init.d/tentacle_serverd and here is the problem. I replace the tentacle_server.conf by tentacle_server.conf.new to get back to the original file. I didn't set external_opts in tentacle_server.conf I just set cert info in /etc/init.d/tentacle_serverd and everything works now. Regards. Josselin.
Entra en tu cuenta para publicar.
