Git Product home page Git Product logo

Comments (7)

lachesis avatar lachesis commented on August 30, 2024 2

The "PrivateKey" value should be a valid import format for gpg. You need to pass a magic flag to make GPG happy that we didn't include a self-signed signature for the primary uid gpg --import --allow-non-selfsigned-uid.

Then just paste the PrivateKey value into that. Then you can do gpg --edit-key FINGERPRINT. Follow the prompts to delete the placeholder UID, create your own UID, and save.

Then gpg --export FINGERPRINT > FINGERPRINT.pub will give you the public key.

from scallion.

job avatar job commented on August 30, 2024

I tried 1.4.18 and 2.0.26

Vurt:~ job$ gpg --import --allow-non-selfsigned-uids < privkey.txt
gpg: Invalid option "--allow-non-selfsigned-uids"

Vurt:~ job$ gpg2 --import --allow-non-selfsigned-uids < privkey.txt
gpg: invalid option "--allow-non-selfsigned-uids"

from scallion.

lachesis avatar lachesis commented on August 30, 2024

Ah, my bad - it's gpg --import --allow-non-selfsigned-uid. It works for me on 2.0.26.

from scallion.

job avatar job commented on August 30, 2024

Awesome! thanks

from scallion.

ryantheleach avatar ryantheleach commented on August 30, 2024

I'm trying this, and getting no valid OpenPGP data found for the following test key.

-----BEGIN PGP PRIVATE KEY BLOCK-----
Version: Scallion

lQHZBFljXlEBBACYvBSgwLUc4X//Wijk+DQ4izHpd5Pp4/HajdQDyVSL+qBmuwm1Q6f2Rtapy8UNDu
XrDbgBG5xJh2A7xJdRyaM7bCXth5SXf23CJKzn2zdX3y3VriFT+I9+1en86FD6ODq/R+wJ5o5zIDfO
UCug3mZzTLILywEQZvEtL/Eq7+/mNQAgr68DEwAD+gM67dTrnU7ICnTy4de1xpBp8vlDX3VJZTUH26
Amn5uObuCG2c2xXVfG887mwj6YLIK26gCBusyYm3raEyU/QCGVTJdM2j4BR1SKnZmKT40+xy0Ef696
LzO4O6L+qZVLkj4zVYERV4WFBAGgFMA9sa+QwT5mPJRzvNQ+rq8KBRFdAgDLCiV/91TEfwzPwqT9/t
uvRzAyHcnYzEu1nOFxRoTjLjbS3Om1G//EUL6c2i8r6MpVq8slgsAd62a+OkrMJEabAgDAktnEbUfX
TE+jfF45rEF+ezfKSmGUdIOifZ5K5LIKVaKsiHut/3Nf9bic0VX8uLnRgeTkh4s5KCd235WR/+tvAf
9ca65UOoxXP9Stc/xywLKGLEbcoIpuxbhuf9D/dmp0r/YYzWftEaVRspc5di5/m6kEU4Ek5WfkHgSo
7PtLqNNrqbK0GVNjYWxsaW9uIFVJRCAocmVwbGFjZSBtZSk======
-----END PGP PRIVATE KEY BLOCK-----

from scallion.

alvinneocom avatar alvinneocom commented on August 30, 2024

I'm trying this, and getting no valid OpenPGP data found for the following test key.

-----BEGIN PGP PRIVATE KEY BLOCK-----
Version: Scallion

lQHZBFljXlEBBACYvBSgwLUc4X//Wijk+DQ4izHpd5Pp4/HajdQDyVSL+qBmuwm1Q6f2Rtapy8UNDu
XrDbgBG5xJh2A7xJdRyaM7bCXth5SXf23CJKzn2zdX3y3VriFT+I9+1en86FD6ODq/R+wJ5o5zIDfO
UCug3mZzTLILywEQZvEtL/Eq7+/mNQAgr68DEwAD+gM67dTrnU7ICnTy4de1xpBp8vlDX3VJZTUH26
Amn5uObuCG2c2xXVfG887mwj6YLIK26gCBusyYm3raEyU/QCGVTJdM2j4BR1SKnZmKT40+xy0Ef696
LzO4O6L+qZVLkj4zVYERV4WFBAGgFMA9sa+QwT5mPJRzvNQ+rq8KBRFdAgDLCiV/91TEfwzPwqT9/t
uvRzAyHcnYzEu1nOFxRoTjLjbS3Om1G//EUL6c2i8r6MpVq8slgsAd62a+OkrMJEabAgDAktnEbUfX
TE+jfF45rEF+ezfKSmGUdIOifZ5K5LIKVaKsiHut/3Nf9bic0VX8uLnRgeTkh4s5KCd235WR/+tvAf
9ca65UOoxXP9Stc/xywLKGLEbcoIpuxbhuf9D/dmp0r/YYzWftEaVRspc5di5/m6kEU4Ek5WfkHgSo
7PtLqNNrqbK0GVNjYWxsaW9uIFVJRCAocmVwbGFjZSBtZSk======
-----END PGP PRIVATE KEY BLOCK-----

did you find a solution?

from scallion.

nathanfranke avatar nathanfranke commented on August 30, 2024

Then you can do gpg --edit-key FINGERPRINT. Follow the prompts to delete the placeholder UID, create your own UID, and save.

To do this, type

uid 1 # Select only uid
deluid # Delete it
adduid # Add your own, follow prompts
trust
5 # Give ultimate trust to yourself
save # Save the key

Ignoring # and everything after

from scallion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.