How to retrieve the public key from inside the yubikey?
Suppose I changed computers and lost the public key file. How can I extract it from the yubikey?
You should be able to just to a regular gpg --export
Better still if you have the public key uploaded to a keyserver - set the card's URL to the url of the public key and to can do the following:
$ gpg --card-edit
gpg> fetch
Gpg will download the public key and add it to the key ring
See issue #305 where somebody has cut and pasted the output
Reconfigure you yubikey about the part of GPG, If you do not have any keyserver you was upload and any backup in sotre.
Duping to other issue.