AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 539265
Accepted
Alexander Bird
Alexander Bird
Asked: 2013-09-17 06:04:52 +0800 CST2013-09-17 06:04:52 +0800 CST 2013-09-17 06:04:52 +0800 CST

Windows如何以加密方式读取网站证书文件?

  • 772

我有一个由 CA 签名的 .crt 文件。我cat看文件是ascii文本。然而,当我在 Windows 中双击 .crt 文件时,它会打开它并以某种方式显示其中的所有信息。Windows 是否会自动尝试所有已知的 CA 公钥,直到找到可以将该 .crt 文件转换为信息的公钥?如何手动解密证书以查看信息(最好在 linux 命令中,因为我更了解这些)?

ssl-certificate
  • 2 2 个回答
  • 358 Views

2 个回答

  • Voted
  1. Best Answer
    MadHatter
    2013-09-17T06:09:18+08:002013-09-17T06:09:18+08:00

    根据 SSL 标准,您看到的 ASCII 字符是 ASCII 编码的证书。您可以使用许多工具来解码(而不是解密)证书;这是一个例子:

    [me@anni tmp]$ cat /tmp/cert
    -----BEGIN CERTIFICATE-----
    MIIFNDCCBBygAwIBAgIDB9RMMA0GCSqGSIb3DQEBBQUAMDwxCzAJBgNVBAYTAlVT
    [many lines deleted to save space]
    n0lvNATb6/RC7CmSMw5RelfVqm19YorWPeQ8c/a6uHSgYhLboPeNTA==
    -----END CERTIFICATE-----
    [me@anni tmp]$ openssl x509 -text -noout -in /tmp/cert
    Certificate:
        Data:
            Version: 3 (0x2)
            Serial Number: 513100 (0x7d44c)
        Signature Algorithm: sha1WithRSAEncryption
            Issuer: C=US, O=GeoTrust, Inc., CN=RapidSSL CA
            Validity
                Not Before: Aug 16 06:07:05 2012 GMT
                Not After : Oct 16 09:42:56 2016 GMT
            Subject: serialNumber=5VXPb8ozky-0FKC/YsTB4dvcoUwVakXy, OU=GT42621204, OU=See www.rapidssl.com/resources/cps (c)12, OU=Domain Control Validated - RapidSSL(R), CN=www.teaparty.net
            Subject Public Key Info:
                Public Key Algorithm: rsaEncryption
                    Public-Key: (2048 bit)
                    Modulus:
                        00:aa:e2:fd:b3:a2:5c:fa:33:0b:fa:14:8a:3a:3d:
    [...]
                        f8:01
                    Exponent: 65537 (0x10001)
            X509v3 extensions:
                X509v3 Authority Key Identifier: 
                    keyid:6B:69:3D:6A:18:42:4A:DD:8F:02:65:39:FD:35:24:86:78:91:16:30
    
                X509v3 Key Usage: critical
                    Digital Signature, Key Encipherment
                X509v3 Extended Key Usage: 
                    TLS Web Server Authentication, TLS Web Client Authentication
                X509v3 Subject Alternative Name: 
                    DNS:www.teaparty.net, DNS:teaparty.net
                X509v3 CRL Distribution Points: 
    
                    Full Name:
                      URI:http://rapidssl-crl.geotrust.com/crls/rapidssl.crl
    
                X509v3 Subject Key Identifier: 
                    1A:6D:59:8A:CD:C0:FD:AC:3C:D0:AF:C0:99:48:F5:5C:B9:AD:A9:E3
                X509v3 Basic Constraints: critical
                    CA:FALSE
                Authority Information Access: 
                    OCSP - URI:http://rapidssl-ocsp.geotrust.com
                    CA Issuers - URI:http://rapidssl-aia.geotrust.com/rapidssl.crt
    
                X509v3 Certificate Policies: 
                    Policy: 2.16.840.1.113733.1.7.54
                      CPS: http://www.geotrust.com/resources/cps
    
        Signature Algorithm: sha1WithRSAEncryption
             28:30:d9:19:a8:5e:8e:56:f6:98:1c:e0:be:b3:39:6e:6f:4c:
    [...]
             a0:f7:8d:4c
    
    • 6
  2. theultramage
    2013-10-15T06:48:14+08:002013-10-15T06:48:14+08:00

    您的 .crt 文件是 X.509 标准证书,以二进制 ASN.1 DER 格式存储,以 Base64 编码。读取这些证书的软件知道如何解释所有这些格式并获取其中的信息。

    • 1

相关问题

  • RHEL/Apache ssl.conf 配置问题

  • IIS7 中的证书信任列表

  • SSL证书的区别?

  • 如何修复邮件服务器 SSL?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve