diff --git a/tools/src/bin/opgpcard/output/generate.rs b/tools/src/bin/opgpcard/output/generate.rs index 33c3282..cc92843 100644 --- a/tools/src/bin/opgpcard/output/generate.rs +++ b/tools/src/bin/opgpcard/output/generate.rs @@ -27,10 +27,8 @@ impl AdminGenerate { } fn text(&self) -> Result { - Ok(format!( - "OpenPGP card {}\n\n{}\n", - self.ident, self.public_key, - )) + // Do not print ident, as the file with the public_key must not contain anything else + Ok(self.public_key.to_string()) } fn v1(&self) -> Result {