keybase / client

Keybase Go Library, Client, Service, OS X, iOS, Android, Electron
BSD 3-Clause "New" or "Revised" License
8.88k stars 1.23k forks source link

Add PGP from protonmail #12332

Open 648643579 opened 6 years ago

648643579 commented 6 years ago

Hello all,

I'm trying to add PGP from protonmail to keybase... Using these instructions: https://security.stackexchange.com/questions/151062/how-to-export-my-protonmail-private-key/151954

I managed to get:

https://image.ibb.co/hrV2pd/B1.png https://image.ibb.co/de2Mhy/B2.png

I wanted to use the keybase method: "command line with [bash + GPG + cURL]" Unfortunately, this method is not working for me...

I do not know how to create a valid PGP ".asc" file from (public key+private key+KeyHash)

(Because if I do not mistake, without the added set of keys in Linux. I can not verify the PGP key according to the chosen method in the Linux terminal)

Can you please advise me how to do it?

https://github.com/keybase/client/issues/11893 @mehdibo @5h4d0ww0lf @dabura667

junderw commented 6 years ago

.......?

"PrivateKey" key's value is a valid asc file.

  1. save PrivateKey value to text file as priv.asc (make sure that \r\n and \n are converted into line break properly)
  2. Derive the password which you seem to have done.
  3. gpg --import priv.asc
  4. It asks for your password, paste the result of console.log(key)

I just tried it out and got my protonmail key out and was able to sign things and use it in gpg on my terminal.

648643579 commented 6 years ago

Hmm, I thought the ".asc" file must contain a private key and one public key. (but this combination did not work me)

I saved the data "protonmail private key" to file "testkey2.asc" And I get a Error CRC.

I tried the raw data from the output (mozilla firefox "PrivateKey") = does not work I tried to manually edit the data into PGP format = does not work

How did you successfully export the private key to the .asc file?

648643579 commented 6 years ago

OK, I've already figured out where the problem is.

My new version of mozilla firefox badly copy output data. For the ESR version everything is OK.

Thank you very much! (mainly for information about \r\n and \n)

junderw commented 6 years ago

.asc file can contain any ascii-armored data. :-P

But in the instance of importing a private key to gpg keyring all you need is the private key, gpg will automatically generate the public key for you from the private key.