Outils pour utilisateurs

Outils du site


tech:pb_plugin_nagios_centreon_nsclient_403

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
tech:pb_plugin_nagios_centreon_nsclient_403 [2025/04/04 14:18] – créée Jean-Baptistetech:pb_plugin_nagios_centreon_nsclient_403 [2025/04/04 17:25] (Version actuelle) Jean-Baptiste
Ligne 1: Ligne 1:
 <!DOCTYPE markdown> <!DOCTYPE markdown>
-{{tag>Windows Nagios Centreon Supervision HTTP MITM}}+{{tag>Windows Nagios Centreon Supervision HTTPS TLS MITM}}
  
 # Pb plugin Nagios centreon NSClient 403 # Pb plugin Nagios centreon NSClient 403
Ligne 23: Ligne 23:
 ## Analyse - Création d'un MITM HTTPS avec socat ## Analyse - Création d'un MITM HTTPS avec socat
  
 +### Décapsuler HTTPS en créant un MITM HTTP (HTTPS to HTTP)
  
 +~~~bash
 +socat TCP-LISTEN:8080,fork OPENSSL:10.12.50.161:8443,verify=0
 +~~~
  
 +
 +### Création des certificats pour encapsulation HTTPS (HTTP to HTTPS)
 +
 +Voir :
 +* [[openssl_creer_un_certificat_autosigne_create_a_self-signed_ssl_certificate]]
 +* https://fabianlee.org/2022/10/26/linux-socat-used-as-secure-https-web-server/
 +
 +~~~bash
 +FQDN=localhost
 +
 +#openssl genrsa -out plop.key 2048
 +#openssl req -new -key plop.key -x509  -subj '/CN=localhost'  -out plop.cert
 +#cat plop.key plop.cert > plop.pem
 +
 +# Ou 
 +openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout plop.key -out plop.crt
 +~~~
  
  
Ligne 92: Ligne 113:
 ~~~ ~~~
  
 +
 +## Autres socat
 +
 +Pour test
 +~~~bash
 +socat -v -ls OPENSSL-LISTEN:${PORT},reuseaddr,cert=${FQDN}.pem,verify=0,crlf,fork SYSTEM:"echo HTTP/1.0 200; echo Content-Type\: text/plain; echo; echo \"hello from $(hostname) at \$(date)\""
 +~~~
  
  
  
tech/pb_plugin_nagios_centreon_nsclient_403.1743769090.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki