tech:pb_plugin_nagios_centreon_nsclient_403
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| tech:pb_plugin_nagios_centreon_nsclient_403 [2025/04/04 14:18] – créée Jean-Baptiste | tech:pb_plugin_nagios_centreon_nsclient_403 [2025/04/04 17:25] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| < | < | ||
| - | {{tag> | + | {{tag> |
| # 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: | ||
| + | ~~~ | ||
| + | |||
| + | ### Création des certificats pour encapsulation HTTPS (HTTP to HTTPS) | ||
| + | |||
| + | Voir : | ||
| + | * [[openssl_creer_un_certificat_autosigne_create_a_self-signed_ssl_certificate]] | ||
| + | * https:// | ||
| + | |||
| + | ~~~bash | ||
| + | FQDN=localhost | ||
| + | |||
| + | #openssl genrsa -out plop.key 2048 | ||
| + | #openssl req -new -key plop.key -x509 -subj '/ | ||
| + | #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: | ||
| + | ~~~ | ||
tech/pb_plugin_nagios_centreon_nsclient_403.1743769090.txt.gz · Dernière modification : de Jean-Baptiste
