openssl
Differences
This shows you the differences between two versions of the page.
openssl [2025/09/20 12:51] – created - external edit 127.0.0.1 | openssl [2025/09/21 14:49] (current) – kurgan | ||
---|---|---|---|
Line 4: | Line 4: | ||
===== Verifica se SSL (e/o TLS) funziona: ===== | ===== Verifica se SSL (e/o TLS) funziona: ===== | ||
- | * https: | + | * https:< |
- | < | + | |
openssl s_client | openssl s_client | ||
</ | </ | ||
- | * smtp + TLS (porta 25) | + | * smtp + TLS (porta 25)< |
- | < | + | |
openssl s_client | openssl s_client | ||
</ | </ | ||
- | * imap + TLS (porta 143) | + | * imap + TLS (porta 143)< |
- | < | + | |
openssl s_client | openssl s_client | ||
</ | </ | ||
- | + | | |
- | | + | |
- | < | + | |
openssl s_client | openssl s_client | ||
</ | </ | ||
- | * smtps (porta 465) | + | * smtps (porta 465)< |
- | < | + | |
openssl s_client -CApath / | openssl s_client -CApath / | ||
</ | </ | ||
- | * imaps (porta 993) | + | * imaps (porta 993)< |
- | < | + | |
openssl s_client -CApath / | openssl s_client -CApath / | ||
</ | </ | ||
- | * pop3s (porta 995) | + | * pop3s (porta 995)< |
- | < | + | |
openssl s_client -CApath / | openssl s_client -CApath / | ||
</ | </ | ||
Line 72: | Line 64: | ||
C'è un cliente che mi manda i certificati in un PFX. Questo è il metodo per estrarli, con tanto di opzione per accettare algoritmi obsoleti. | C'è un cliente che mi manda i certificati in un PFX. Questo è il metodo per estrarli, con tanto di opzione per accettare algoritmi obsoleti. | ||
- | * estrarre la key: (verrà chiesta la password per aprire il file PFX e poi una password a mia scelta per crittare la key che vado a salvare. La password richiede una lunghezza minima, non usare " | + | * estrarre la key: (verrà chiesta la password per aprire il file PFX e poi una password a mia scelta per crittare la key che vado a salvare. La password richiede una lunghezza minima, non usare " |
- | < | + | |
openssl pkcs12 -legacy -in nome-file.pfx -nocerts -out nome-file.key | openssl pkcs12 -legacy -in nome-file.pfx -nocerts -out nome-file.key | ||
</ | </ | ||
- | * decrittare la key: (se devo usarla per dire in un sito web, la key non può avere una password e quindi devo immediatamente togliere la password che avevo inserito un secondo fa) | + | * decrittare la key: (se devo usarla per dire in un sito web, la key non può avere una password e quindi devo immediatamente togliere la password che avevo inserito un secondo fa)< |
- | < | + | |
openssl rsa -in nome-file.key -out nome-file-decrittata.key | openssl rsa -in nome-file.key -out nome-file-decrittata.key | ||
</ | </ | ||
- | * estrarre i certificati: | + | * estrarre i certificati: |
- | < | + | |
openssl pkcs12 -legacy -in nome-file.pfx -nokeys -out nome-file.cert | openssl pkcs12 -legacy -in nome-file.pfx -nokeys -out nome-file.cert | ||
</ | </ | ||
openssl.1758372660.txt.gz · Last modified: by 127.0.0.1