๋ฐ์ํ
certutil.exe๋ฅผ ์ฌ์ฉํ์ฌ x.509 ์ธ์ฆ์๊ฐ ์ ํจํ์ง ๊ฒ์ฆํ ์ ์๋ค. (google์ ์ ์ฉ๋ ssl ์ธ์ฆ์๋ฅผ ๊ฐ์ง๊ณ ํ ์คํธ๋ฅผ ์งํํ๋ค.)
1. ์ธ์ฆ์ ์์นํ๊ณ ์๋ ๊ฒฝ๋ก๋ก ์ด๋ : cd ์ธ์ฆ์ ๊ฒฝ๋ก
2. ์ธ์ฆ์ ๊ฒ์ฆ : certutil -v -f -urlfetch -verify ์ธ์ฆ์ ํ์ผ๋ช
์ธ์ฆ์ ๊ฒ์ฆ ๋ช ๋ น์ด๋ฅผ ์ ๋ ฅํ๋ฉด ์๋์ ๊ฐ์ ๊ฒฐ๊ณผ๊ฐ ํ์๋๋ค.
๋ฐ๊ธ์: CN=Thawte TLS RSA CA G1 OU=www.digicert.com O=DigiCert Inc C=US [0,0]: CERT_RDN_PRINTABLE_STRING, ๊ธธ์ด = 2 (2/2 ๋ฌธ์) 2.5.4.6 ๊ตญ๊ฐ/์ง์ญ (C)="US" 55 53 US 55 00 53 00 U.S. [1,0]: CERT_RDN_PRINTABLE_STRING, ๊ธธ์ด = 12 (12/64 ๋ฌธ์) 2.5.4.10 ์กฐ์ง (O)="DigiCert Inc" 44 69 67 69 43 65 72 74 20 49 6e 63 DigiCert Inc 44 00 69 00 67 00 69 00 43 00 65 00 72 00 74 00 D.i.g.i.C.e.r.t. 20 00 49 00 6e 00 63 00 .I.n.c. [2,0]: CERT_RDN_PRINTABLE_STRING, ๊ธธ์ด = 16 (16/64 ๋ฌธ์) 2.5.4.11 ์กฐ์ง ๊ตฌ์ฑ ๋จ์ (OU)="www.digicert.com" 77 77 77 2e 64 69 67 69 63 65 72 74 2e 63 6f 6d www.digicert.com 77 00 77 00 77 00 2e 00 64 00 69 00 67 00 69 00 w.w.w...d.i.g.i. 63 00 65 00 72 00 74 00 2e 00 63 00 6f 00 6d 00 c.e.r.t...c.o.m. [3,0]: CERT_RDN_PRINTABLE_STRING, ๊ธธ์ด = 20 (20/64 ๋ฌธ์) 2.5.4.3 ๊ณตํต ์ด๋ฆ (CN)="Thawte TLS RSA CA G1" 54 68 61 77 74 65 20 54 4c 53 20 52 53 41 20 43 Thawte TLS RSA C 41 20 47 31 A G1 54 00 68 00 61 00 77 00 74 00 65 00 20 00 54 00 T.h.a.w.t.e. .T. 4c 00 53 00 20 00 52 00 53 00 41 00 20 00 43 00 L.S. .R.S.A. .C. 41 00 20 00 47 00 31 00 A. .G.1. ์ด๋ฆ ํด์(sha1): 7384a7d062c007419643cdbf11b50e4f82c4e341 ์ด๋ฆ ํด์(md5): f9ba901bc2b8e6b399b007e927ac821e ์ฃผ์ฒด: CN=*.tistory.com O=Kakao Corp. L=Jeju-si S=Jeju-do C=KR [0,0]: CERT_RDN_PRINTABLE_STRING, ๊ธธ์ด = 2 (2/2 ๋ฌธ์) 2.5.4.6 ๊ตญ๊ฐ/์ง์ญ (C)="KR" 4b 52 KR 4b 00 52 00 K.R. [1,0]: CERT_RDN_PRINTABLE_STRING, ๊ธธ์ด = 7 (7/128 ๋ฌธ์) 2.5.4.8 ์/๋ (S)="Jeju-do" 4a 65 6a 75 2d 64 6f Jeju-do 4a 00 65 00 6a 00 75 00 2d 00 64 00 6f 00 J.e.j.u.-.d.o. [2,0]: CERT_RDN_PRINTABLE_STRING, ๊ธธ์ด = 7 (7/128 ๋ฌธ์) 2.5.4.7 ๊ตฌ/๊ตฐ/์ (L)="Jeju-si" 4a 65 6a 75 2d 73 69 Jeju-si 4a 00 65 00 6a 00 75 00 2d 00 73 00 69 00 J.e.j.u.-.s.i. [3,0]: CERT_RDN_PRINTABLE_STRING, ๊ธธ์ด = 11 (11/64 ๋ฌธ์) 2.5.4.10 ์กฐ์ง (O)="Kakao Corp." 4b 61 6b 61 6f 20 43 6f 72 70 2e Kakao Corp. 4b 00 61 00 6b 00 61 00 6f 00 20 00 43 00 6f 00 K.a.k.a.o. .C.o. 72 00 70 00 2e 00 r.p... [4,0]: CERT_RDN_UTF8_STRING, ๊ธธ์ด = 13 (13/64 ๋ฌธ์) 2.5.4.3 ๊ณตํต ์ด๋ฆ (CN)="*.tistory.com" 2a 2e 74 69 73 74 6f 72 79 2e 63 6f 6d *.tistory.com 2a 00 2e 00 74 00 69 00 73 00 74 00 6f 00 72 00 *...t.i.s.t.o.r. 79 00 2e 00 63 00 6f 00 6d 00 y...c.o.m. ์ด๋ฆ ํด์(sha1): 0efcc67ffc0fe54d088332e193c7532f4175b919 ์ด๋ฆ ํด์(md5): 1bee852950c5f7f875eefdc86ec68db8 ์ธ์ฆ์ ์ผ๋ จ ๋ฒํธ: 0ece8f8b8d8eabe61be2f1967c4b4660 60 46 4b 7c 96 f1 e2 1b e6 ab 8e 8d 8b 8f ce 0e dwFlags = CA_VERIFY_FLAGS_ALLOW_UNTRUSTED_ROOT (0x1) dwFlags = CA_VERIFY_FLAGS_IGNORE_OFFLINE (0x2) dwFlags = CA_VERIFY_FLAGS_FULL_CHAIN_REVOCATION (0x8) dwFlags = CA_VERIFY_FLAGS_CONSOLE_TRACE (0x20000000) dwFlags = CA_VERIFY_FLAGS_DUMP_CHAIN (0x40000000) ChainFlags = CERT_CHAIN_REVOCATION_CHECK_CHAIN (0x20000000) HCCE_LOCAL_MACHINE CERT_CHAIN_POLICY_BASE -------- CERT_CHAIN_CONTEXT -------- ChainContext.dwInfoStatus = CERT_TRUST_HAS_PREFERRED_ISSUER (0x100) SimpleChain.dwInfoStatus = CERT_TRUST_HAS_PREFERRED_ISSUER (0x100) CertContext[0][0]: dwInfoStatus=102 dwErrorStatus=0 Issuer: CN=Thawte TLS RSA CA G1, OU=www.digicert.com, O=DigiCert Inc, C=US NotBefore: 2022-03-14 ์ค์ 9:00 NotAfter: 2023-04-01 ์ค์ 8:59 Subject: CN=*.tistory.com, O=Kakao Corp., L=Jeju-si, S=Jeju-do, C=KR Serial: 0ece8f8b8d8eabe61be2f1967c4b4660 SubjectAltName: DNS Name=*.tistory.com, DNS Name=tistory.com Cert: 6d026e323549d2439fa0b9076f9370df83b369a7 Element.dwInfoStatus = CERT_TRUST_HAS_KEY_MATCH_ISSUER (0x2) Element.dwInfoStatus = CERT_TRUST_HAS_PREFERRED_ISSUER (0x100) ---------------- ์ธ์ฆ์ AIA ---------------- ํ์ธ๋จ "์ธ์ฆ์ (0)" ์๊ฐ: 0 c9fefc763d9548b487696f047acba0abe45c7bc1 [0.0] http://cacerts.thawte.com/ThawteTLSRSACAG1.crt ---------------- ์ธ์ฆ์ CDP ---------------- ํ์ธ๋จ "๊ธฐ์ค CRL (0663)" ์๊ฐ: 0 9bfc0a50ea3dac2486e348353ce47582bb342c5f [0.0] http://cdp.thawte.com/ThawteTLSRSACAG1.crl ---------------- ๊ธฐ๋ฐ CRL CDP ---------------- URL ์์ "์์" ์๊ฐ: 0 (null) ---------------- ์ธ์ฆ์ OCSP ---------------- http://status.thawte.com/MFEwTzBNMEswSTAJBgUrDgMCGgUABBRzhKfQYsAHQZZDzb8RtQ5PgsTjQQQUpYz%2bMszrDyzUGcYIuAAkiF3DxbcCEA7Oj4uNjqvmG%2bLxlnxLRmA%3d?Content-Type: application/ocsp-request ํ์ธ๋จ "OCSP" ์๊ฐ: 0 5f816dd5242784eb23e708eac8a0ca7a34439ad4 [0.0] http://status.thawte.com -------------------------------- CRL (null): Issuer: CN=Thawte TLS RSA CA G1, OU=www.digicert.com, O=DigiCert Inc, C=US ThisUpdate: 2022-05-17 ์คํ 12:45 NextUpdate: 2022-05-24 ์คํ 12:00 CRL: 89691b896195cfc34821203938d8297a98a2f32c Issuance[0] = 2.23.140.1.2.2 Application[0] = 1.3.6.1.5.5.7.3.2 ํด๋ผ์ด์ธํธ ์ธ์ฆ Application[1] = 1.3.6.1.5.5.7.3.1 ์๋ฒ ์ธ์ฆ CertContext[0][1]: dwInfoStatus=102 dwErrorStatus=0 Issuer: CN=DigiCert Global Root G2, OU=www.digicert.com, O=DigiCert Inc, C=US NotBefore: 2017-11-02 ์คํ 9:24 NotAfter: 2027-11-02 ์คํ 9:24 Subject: CN=Thawte TLS RSA CA G1, OU=www.digicert.com, O=DigiCert Inc, C=US Serial: 090ee8c5de5bfa62d2ae2ff7097c4857 Cert: c9fefc763d9548b487696f047acba0abe45c7bc1 Element.dwInfoStatus = CERT_TRUST_HAS_KEY_MATCH_ISSUER (0x2) Element.dwInfoStatus = CERT_TRUST_HAS_PREFERRED_ISSUER (0x100) ---------------- ์ธ์ฆ์ AIA ---------------- URL ์์ "์์" ์๊ฐ: 0 (null) ---------------- ์ธ์ฆ์ CDP ---------------- ํ์ธ๋จ "๊ธฐ์ค CRL (0221)" ์๊ฐ: 0 d8dbc136e04e9825fa80f90faefcc6aa7fda3b13 [0.0] http://crl3.digicert.com/DigiCertGlobalRootG2.crl ---------------- ๊ธฐ๋ฐ CRL CDP ---------------- URL ์์ "์์" ์๊ฐ: 0 (null) ---------------- ์ธ์ฆ์ OCSP ---------------- http://ocsp.digicert.com/MFEwTzBNMEswSTAJBgUrDgMCGgUABBQ50otx%2fh0Ztl%2bz8SiPI7wEWVxDlQQUTiJUIBiV5uNu5g%2f6%2brkS7QYXjzkCEAkO6MXeW%2fpi0q4v9wl8SFc%3d?Content-Type: application/ocsp-request ํ์ธ๋จ "OCSP" ์๊ฐ: 0 ebe8c7b56dc0761c15437ae56da68c7215cedd03 [0.0] http://ocsp.digicert.com -------------------------------- CRL (null): Issuer: CN=DigiCert Global Root G2, OU=www.digicert.com, O=DigiCert Inc, C=US ThisUpdate: 2022-05-16 ์ค์ 4:38 NextUpdate: 2022-05-23 ์ค์ 4:38 CRL: 3f4bcdded5f332cdfd1f6f8275c1060e9a3e86a2 Application[0] = 1.3.6.1.5.5.7.3.2 ํด๋ผ์ด์ธํธ ์ธ์ฆ Application[1] = 1.3.6.1.5.5.7.3.1 ์๋ฒ ์ธ์ฆ CertContext[0][2]: dwInfoStatus=10c dwErrorStatus=0 Issuer: CN=DigiCert Global Root G2, OU=www.digicert.com, O=DigiCert Inc, C=US NotBefore: 2013-08-01 ์คํ 9:00 NotAfter: 2038-01-15 ์คํ 9:00 Subject: CN=DigiCert Global Root G2, OU=www.digicert.com, O=DigiCert Inc, C=US Serial: 033af1e6a711a9a0bb2864b11d09fae5 Cert: df3c24f9bfd666761b268073fe06d1cc8d4f82a4 Element.dwInfoStatus = CERT_TRUST_HAS_NAME_MATCH_ISSUER (0x4) Element.dwInfoStatus = CERT_TRUST_IS_SELF_SIGNED (0x8) Element.dwInfoStatus = CERT_TRUST_HAS_PREFERRED_ISSUER (0x100) ---------------- ์ธ์ฆ์ AIA ---------------- URL ์์ "์์" ์๊ฐ: 0 (null) ---------------- ์ธ์ฆ์ CDP ---------------- URL ์์ "์์" ์๊ฐ: 0 (null) ---------------- ์ธ์ฆ์ OCSP ---------------- URL ์์ "์์" ์๊ฐ: 0 (null) -------------------------------- Application[0] = 1.3.6.1.5.5.7.3.2 ํด๋ผ์ด์ธํธ ์ธ์ฆ Application[1] = 1.3.6.1.5.5.7.3.3 ์ฝ๋ ์๋ช Application[2] = 1.3.6.1.5.5.7.3.4 ์ ์ ๋ฉ์ผ ๋ณด์ Application[3] = 1.3.6.1.5.5.7.3.1 ์๋ฒ ์ธ์ฆ Application[4] = 1.3.6.1.5.5.7.3.8 ํ์์คํฌํ EV[0] = 2.16.840.1.114412.2.1 EV[1] = 2.23.140.1.3 Exclude leaf cert: Chain: 2fe4cb41e56c87b3431279571efb8c5465394576 Full chain: Chain: 655368550a3243c00218deb309d6e774e605e607 ------------------------------------ ํ์ธ๋ ๋ฐ๊ธ ์ ์ฑ : 2.23.140.1.2.2 ํ์ธ๋ ์์ฉ ํ๋ก๊ทธ๋จ ์ ์ฑ : 1.3.6.1.5.5.7.3.2 ํด๋ผ์ด์ธํธ ์ธ์ฆ 1.3.6.1.5.5.7.3.1 ์๋ฒ ์ธ์ฆ ์ธ์ฆ์๊ฐ End Entity ์ธ์ฆ์์ ๋๋ค. ์ค๋ฅ: ๋ฆฌํ ์ธ์ฆ์ ํด์ง ์ํ ํ์ธ์์ ํด์ง ์๋ฒ๊ฐ ์คํ๋ผ์ธ์ด๋ฏ๋ก ํด์ง๋ฅผ ํ์ธํ์ง ๋ชปํ์ต๋๋ค. 0x80092013 (-2146885613 CRYPT_E_REVOCATION_OFFLINE)์(๋ฅผ) ๋ฐํํ์ต๋๋ค. CertUtil: ํด์ง ์๋ฒ๊ฐ ์คํ๋ผ์ธ์ด๋ฏ๋ก ํด์ง๋ฅผ ํ์ธํ์ง ๋ชปํ์ต๋๋ค. CertUtil: -verify ๋ช ๋ น์ด ์ฑ๊ณต์ ์ผ๋ก ์๋ฃ๋์์ต๋๋ค. |
AIA ํ๋์ ์๋ ์ธ์ฆ ๊ธฐ๊ด ๋ฐ๊ธ์์ OCSP, CRL ๋ฑ ์ธ์ฆ์์ ์ ๋ณด๋ฅผ ํ๋ํ๋ ์ฒดํฌํด์ค๋ค.
์ฐธ๊ณ
์บ์ ์ญ์ : certutil -urlcache * delete
728x90
๋ฐ์ํ
๋๊ธ