informatica:linux:certificados
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
informatica:linux:certificados [2019/10/01 16:29] – jose | informatica:linux:certificados [2024/09/19 13:52] (current) – [Grabar certificado, subCA y CA] jose | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Listar certificado y ver fecha y issuer ====== | ||
+ | URL=www.google.com; | ||
+ | |||
+ | El resultado es este, certificado, | ||
+ | < | ||
+ | subject=CN = www.google.com | ||
+ | issuer=C = US, O = Google Trust Services, CN = WR2 | ||
+ | notBefore=Aug 12 07:19:41 2024 GMT | ||
+ | notAfter=Nov | ||
+ | |||
+ | subject=C = US, O = Google Trust Services, CN = WR2 | ||
+ | issuer=C = US, O = Google Trust Services LLC, CN = GTS Root R1 | ||
+ | notBefore=Dec 13 09:00:00 2023 GMT | ||
+ | notAfter=Feb 20 14:00:00 2029 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 | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====== Grabar certificado, | ||
+ | El mismo comando pero guarda el certificado, | ||
+ | URL=www.google.com; | ||
+ | |||
+ | En este caso creo los ficheros: | ||
+ | www.google.com.crt | ||
+ | WR2.crt | ||
+ | GTS_Root_R1.crt | ||
+ | |||
+ | Si probamos con www.elpais.es tiene 4 certificados | ||
+ | |||
+ | < | ||
+ | subject=CN = elpais.com | ||
+ | issuer=C = US, O = Amazon, CN = Amazon RSA 2048 M03 | ||
+ | notBefore=Jul 18 00:00:00 2024 GMT | ||
+ | notAfter=Aug 16 23:59:59 2025 GMT | ||
+ | |||
+ | subject=C = US, O = Amazon, CN = Amazon RSA 2048 M03 | ||
+ | issuer=C = US, O = Amazon, CN = Amazon Root CA 1 | ||
+ | notBefore=Aug 23 22:26:04 2022 GMT | ||
+ | notAfter=Aug 23 22:26:04 2030 GMT | ||
+ | |||
+ | subject=C = US, O = Amazon, CN = Amazon Root CA 1 | ||
+ | issuer=C = US, ST = Arizona, L = Scottsdale, O = " | ||
+ | notBefore=May 25 12:00:00 2015 GMT | ||
+ | notAfter=Dec 31 01:00:00 2037 GMT | ||
+ | |||
+ | subject=C = US, ST = Arizona, L = Scottsdale, O = " | ||
+ | issuer=C = US, O = " | ||
+ | notBefore=Sep | ||
+ | notAfter=Jun 28 17:39:16 2034 GMT | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | elpais.com.crt | ||
+ | Amazon_RSA_2048_M03.crt | ||
+ | Amazon_Root_CA_1.crt | ||
+ | Starfield_Services_Root_Certificate_Authority_-_G2.crt | ||
+ | </ | ||
+ | ====== Firefox ====== | ||
Para importar un certificado en firefox: | Para importar un certificado en firefox: | ||
https:// | https:// | ||
Line 5: | Line 67: | ||
Crear o generar Certificado autofirmado | Crear o generar Certificado autofirmado | ||
Creamos Petición: | Creamos Petición: | ||
- | openssl req -new -nodes -keyout www.lobo99.com.key -out www.lobo99.com.csr -subj "/C=CAT/ | + | openssl req -new -nodes -keyout www.lobo99.com.key -out www.lobo99.com.csr -subj "/C=ES/ |
Firmamos el certificado: | Firmamos el certificado: | ||
openssl x509 -req -days 3650 -in www.lobo99.com.csr -signkey www.lobo99.com.key -out www.lobo99.com.crt | openssl x509 -req -days 3650 -in www.lobo99.com.csr -signkey www.lobo99.com.key -out www.lobo99.com.crt |
informatica/linux/certificados.1569947362.txt.gz · Last modified: 2019/10/01 16:29 by jose