keyfork derive openpgp: export secret keys instead of public certs

This commit is contained in:
Ryan Heywood 2025-01-15 16:19:46 -05:00
parent a233686996
commit adb5293f1d
Signed by: ryan
GPG Key ID: 8E401478A3FBEF72
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ fn run() -> Result<(), Box<dyn std::error::Error>> {
let mut w = Writer::new(std::io::stdout(), Kind::SecretKey)?;
for packet in cert.into_packets2() {
for packet in cert.as_tsk().into_packets() {
packet.serialize(&mut w)?;
}

View File

@ -124,7 +124,7 @@ impl OpenPGP {
let mut w = Writer::new(std::io::stdout(), Kind::SecretKey)?;
for packet in cert.into_packets2() {
for packet in cert.as_tsk().into_packets() {
packet.serialize(&mut w)?;
}