1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00

Use Key ID instead of fingerprint in OpenPGP URL interpolation.

This commit is contained in:
Sascha L. Teichmann 2021-12-01 20:51:39 +01:00
parent 9cf4a7cb5c
commit fbe20dbf60
2 changed files with 19 additions and 17 deletions

View file

@ -101,8 +101,8 @@ func createProviderMetadata(c *config, wellknownCSAF string) error {
if err != nil {
return err
}
fingerprint := key.GetFingerprint()
pm.SetPGP(fingerprint, c.GetOpenPGPURL(fingerprint))
keyID, fingerprint := key.GetHexKeyID(), key.GetFingerprint()
pm.SetPGP(fingerprint, c.GetOpenPGPURL(keyID))
return saveToFile(path, pm)
}