I have created a GPG key with
gpg --gen-key, accepted all the default options.
gpg --list-keys and receive:
C:/Users/Myname/AppData/Roaming/gnupg/pubring.gpg pub 2048R/B296038B 2015-11-10 uid [ uneing.] my name <email@example.com> sub 2048R/E86C0F4D 2015-11-10
I then do
gpg --keyserver hkp://keyserver.ubuntu.com --send-keys B296038B.
The keyserver answers with (translated from german, not literal):
keyserver filetransfer error: not a public key Sending to keyserver failed: not a public key
What am I doing wrong? I thought I had created a public and a secret key.
I also tried adding
sub 12345R/E86C0F4D which failed with the same error.
EDIT: I edited in the original values. This was ran on Windows with gpg4win. I ran exactly the same process on an Ubuntu machine and everything went fine, so this is perhaps a bug in gpg4win.