properly check for gpg not returning a matching pgp key
--- type: change description: properly check for gpg not returning a matching pgp key fingerprint: AC2l2tYnpJAkvDzaRR5QQ2MSa4lsVbDO7I1ilcMKFX61 credentials: - type: pgp_signature pub_key_id: 95C46FA6A41148AC body: iQIzBAABAgAdFiEEJ6tQKp6olvZKJ0lwlcRvpqQRSKwFAl6t03YACgkQlcRvpqQRSKyawxAArg76IfshpyGZgGFkfcQz6eyEj9bxwQ8zp1LU+sWch5HxHmsWFFPBrXBcmWVJuSsPZzNNDyIb2tM23NqjnZIq55BigmhX1iX7NDDfoRcMsXi6ibvY7bS3zJ0PRAWplTKUpkQp0cRnq8/Awy9NpUHoop+0HbJ65XmE94kHqboQj7DLG/ZWa1r8xQmKM+1Ffob6u0A7AOhUkWeghfzzjWmAkmjpybD+RZ90pQrwLRdA4+3mrVR0+cDxe70c0B9rPOoKdMsYx4PGfpyk6eIwpE+N7mgXQkmUbiVzA6oVUDw9MkSo17E6qU1/b2NWy5x0BAGdka4NlL7IEYZ3a/iryqrFU58jpmxD9sfZfVJbEhEyUENHvZIMa7t7ysDJa1B9ZngVFcGT06btO+55aSAAWzn60+gtpDLrwbiPMBKQFYwPsXRhiUOum/yfyhXiILqrOdktps+TvfxAan2WzSyHaXWTAuYeqddkDxqVhKZo00bMeSNWPWDJgUfBj1jeJMlnCzV8zDRxTYU1CWiW6EpCNIy0hH137s3fQuWsJdkhNdS4QguxQYY5EE5fF1VKNBXou4coCpEIAgrDzphjxaufRqVP3lvivpfkA5INU2XsIc+hGTI3nTjYxvi5PMsguN1KuKVeZtsIPDUlxUbwNfV7A+TLDOxJTVVCx9r3x5OzcRmpSvM= account: mediocregopher
This commit is contained in:
parent
4389da48e4
commit
23fa9da972
@ -234,6 +234,8 @@ func LoadSignifierPGP(keyID string, anon bool) (Signifier, error) {
|
||||
pubKey, err := cmdGPG(nil, "-a", "--export", keyID)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("loading public key: %w", err)
|
||||
} else if len(pubKey) == 0 {
|
||||
return nil, fmt.Errorf("no public key found for %q", keyID)
|
||||
}
|
||||
|
||||
sig := &SignifierPGP{Body: string(pubKey)}
|
||||
|
Loading…
Reference in New Issue
Block a user