isCyan
V2EX  ›  SSL

为什么 SSH 公钥密钥、SSL 证书和密钥之类的纯文本打开, BEGIN 之后的正文开头都是 MII

  •  
  •   isCyan · Oct 1, 2015 · 4206 views
    This topic created in 4064 days ago, the information mentioned may be changed or developed.
    2 replies  •  2015-10-01 13:49:02 +08:00
    1000copy
    1000copy
    Oct 1, 2015
    1
    可能是 file signature 。就像 PE 文件都上 MZ 打头。(我猜的
    Laforet
    Laforet
    Oct 1, 2015❤️2
    2
    这是 OpenSSL 的文件头。标注了密钥长度。

    http://blog.oddbit.com/2011/05/08/converting-openssh-public-keys/

    30 82 01 (for 768 bit key or MIIB in base64)
    30 82 02 (for 1024 bit key or MIIC in base64),
    30 82 04 (for 2048 bit key or MIIE in base64),
    30 82 09 (for 4096 bit key or MIIJ in base64).
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4945 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 01:45 · PVG 09:45 · LAX 17:45 · JFK 20:45
    ♥ Do have faith in what you're doing.