Se curl non accede ad un sito segnalando un errore nella gestione dei certificati usare il parametro -k per ignorare: curl -k https://<urlsito>
Categoria:HTTPS
Testare raggiungibilità URL
Per testare la raggiungibilità di una URL usare il comando: curl -s <https://test.org/pagina> | grep 404
PFX estrarre cer e key eliminando password
Per estrarre un certificato .cer ed una chiave .key eliminando la password da un PFX procedere come segue: Estrarre il certificato in formato .cer senza password: openssl pkcs12 -clcerts -nokeys -in <certificato>.pfx -out <certificato>.cer Estrarre la chiave in formato .key openssl pkcs12 -in <certificato>.pfx -nocerts -out <chiave>.key Eliminare password dal .key openssl rsa -in <chiave>.key …
Continua a leggere PFX estrarre cer e key eliminando password
HTTP su HTTPs con gestione SSL e redirect (Nginx)
user nginx; worker_processes auto; error_log /var/log/nginx/error.log; pid /run/nginx.pid; # Load dynamic modules. See /usr/share/doc/nginx/README.dynamic. include /usr/share/nginx/modules/*.conf; events { worker_connections 1024; } http { server { listen 80; return 301 https://$host$request_uri; } server { listen 443 ssl; server_name <dominio>; ssl_certificate /etc/nginx/SSL/<certificato>.pem; ssl_certificate_key /etc/nginx/SSL/<certificato>.key; ssl_session_cache builtin:1000 shared:SSL:10m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4; ssl_prefer_server_ciphers on; access_log /var/log/nginx/access.log; …
Continua a leggere HTTP su HTTPs con gestione SSL e redirect (Nginx)