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

Next revision
Previous revision
informatica:linux:apache2:certificados:fecha_y_issuer [2024/04/09 11:18] – created joseinformatica:linux:apache2:certificados:fecha_y_issuer [2024/04/29 14:54] (current) jose
Line 1: Line 1:
-  URL=google.com;OLDIFS=$IFS; IFS=':' certificates=$(echo | openssl s_client -showcerts -servername $URL -connect $URL:443 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+Listar certificado
  
 +  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:
 +<code>
 +subject=CN = *.google.com
 +issuer=C = US, O = Google Trust Services LLC, CN = GTS CA 1C3
 +notBefore=Mar  4 06:35:50 2024 GMT
 +notAfter=May 27 06:35:49 2024 GMT
 +
 +
 +subject=C = US, O = Google Trust Services LLC, CN = GTS CA 1C3
 +issuer=C = US, O = Google Trust Services LLC, CN = GTS Root R1
 +notBefore=Aug 13 00:00:42 2020 GMT
 +notAfter=Sep 30 00:00:42 2027 GMT
 +
 +
 +subject=C = US, O = Google Trust Services LLC, CN = GTS Root R1
 +issuer=C = BE, O = GlobalSign nv-sa, OU = Root CA, CN = GlobalSign Root CA
 +notBefore=Jun 19 00:00:42 2020 GMT
 +notAfter=Jan 28 00:00:42 2028 GMT
 +</code>
 +
 +Si quitamos noout  nos escribe el certificado
informatica/linux/apache2/certificados/fecha_y_issuer.1712661486.txt.gz · Last modified: 2024/04/09 11:18 by jose