Why can't I import public keys?

I'm currently using GPG. Every time I try to import a key from a .txt file in my home folder it tells me no keys were found. Is there a specific file type I should save the key as? Or is there a way to import it from plaintext?

EDIT: I FIGURED IT OUT. I used the same filetype that I saved my public key as. Thanks for the help guys!


Comments


[3 Points] None:

Save it as a .asc file and open it that way.


[1 Points] chef234:

just copy it to your clipboard and then with gpg open press ctrl + V it should be in your keyring.


[1 Points] open__air:

Try using gpg4usb.

It is the best GPG program I have ever used and the .zip download on their site I linked works for Linux and Windows.


[1 Points] None:

[deleted]


[1 Points] FrenchFriedConfusion:

Make sure there is no space at the end of the file. Make sure no formatting carried over.


[1 Points] dethcone:

I had this problem and it turned out the key I was trying to import wasn't formatted correctly. It had --- instead of ----


[1 Points] drimilr:

you're using linux?

launch your terminal

navigate to the directory your keys are in:

gpg --import foo.bar