[pbs-devel] [PATCH proxmox-backup 09/13] paperkey: add short key ID to subject

Dietmar Maurer dietmar at proxmox.com
Mon Nov 23 08:07:47 CET 2020


> +            Ok(mut key_config) => {
> +                // add display version of fingerprint to subject and strip from key data
> +                let subject = match (subject, key_config.fingerprint.take()) {
> +                    (Some(mut subject), Some(fingerprint)) => {
> +                        subject.push_str(&format!(" ({})", fingerprint));
> +                        Some(subject)
> +                    },
> +                    (None, Some(fingerprint)) => Some(format!("Fingerprint: {}", fingerprint)),
> +                    (subject, _) => subject,
> +                };
> +

I still don't get why we need a 32byte fingerprint - this is the same length as the key itself!

I want to avoid having keys with different content (strip fingerprint), because this only
confuse people.





More information about the pbs-devel mailing list