我已经看到在几个地方使用的密钥ID,并希望在我的程序中使用它们,但我没有能够找到它们的描述。
I've seen key IDs used in several places and would like to use them in my program, but I haven't been able to find a description of them. How are they generated?
推荐答案在不同的格式(PGP,SSH,X.509证书)中,密钥ID具有不同的含义。 SSH和X.509都没有专用密钥ID的概念,但有些人使用这个术语(包括他们的软件) - 在这种情况下,它通常是公共密钥或整个证书的哈希。
In different formats (PGP, SSH, X.509 certificates) key ID has different meaning. Neither SSH nor X.509 have a "dedicated" concept of key ID, but some people use this term (including their software) - in this case it's usually a hash of the public key or of the certificate in whole.
更新:注释提醒我,X.509证书中存在密钥标识符扩展名,有时它们被称为密钥ID。然而,这不常见 - 通常哈希(有时也称为指纹)被称为密钥ID。
Update: the comments reminded me that "key identifier" extensions exist in X.509 certifiactes, and they sometimes are being referred to as key IDs. Yet, this is not common - usually the hash (also sometimes called the fingerprint) is referenced as key ID.
更多推荐
什么是RSA“密钥ID”?
发布评论