User Tools

Site Tools


informatica:linux:apache2:certificados:fecha_y_issuer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
informatica:linux:apache2:certificados:fecha_y_issuer [2024/04/29 14:38] joseinformatica:linux:apache2:certificados:fecha_y_issuer [2024/04/29 14:54] (current) jose
Line 1: Line 1:
 Listar certificado Listar certificado
  
-  URL=google.com:443;OLDIFS=$IFS; IFS=':' certificates=$(echo | openssl s_client -showcerts -servername $URL -connect $URL 2>/dev/null | sed -n '/-----BEGIN/,/-----END/ {/-----BEGIN/ s/^/:/; p}'); for certificate in ${certificates#:}; do echo;echo $certificate | openssl x509 -noout -subject -issuer -dates ;echo; done; IFS=$OLDIFS+  URL=google.com;PORT=443;OLDIFS=$IFS; IFS=':' certificates=$(echo | openssl s_client -showcerts -servername $URL -connect $URL:$PORT 2>/dev/null | sed -n '/-----BEGIN/,/-----END/ {/-----BEGIN/ s/^/:/; p}'); for certificate in ${certificates#:}; do echo;echo $certificate | openssl x509 -noout -subject -issuer -dates ;echo; done; IFS=$OLDIFS
  
 El resultado es este: El resultado es este:
Line 22: Line 22:
 notAfter=Jan 28 00:00:42 2028 GMT notAfter=Jan 28 00:00:42 2028 GMT
 </code> </code>
 +
 +Si quitamos noout  nos escribe el certificado
informatica/linux/apache2/certificados/fecha_y_issuer.txt · Last modified: 2024/04/29 14:54 by jose