PGP key that has passphrase as part of the key

I am not too familiar with PGP keys but I have created them previously using Open GPG Kleopatra. I am need to create a PGP key that has passphrase as part of the key.

Please advise on how to proceed on this. Are their any tools to create such a key.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave HoweSoftware and Hardware EngineerCommented:
not sure what you mean by that.

gpg will usually prompt for a passphrase during the creation of the key, but won't insist on one. gpg can set a passphrase on an existing key if it doesn't have one, or remove one from a key that has one.

Kleo has known issues at removing a passphrase (gpgme does stuff it doesn't expect, and causes it to bug out) but the command line can manage just fine.

so, to change (or add) a passphrase to an existing key - just right click it in Kleo, and select "change passphrase"

similarly in GPA, right click, and select "edit key" then "change passphrase"

to remove the passphrase entirely, you need to go a little deeper down the rabbit hole.

run the command "gpg --edit-key <email addr>"
this should give you a gpg command prompt. type "passwd" at that prompt

it will use the same popups as kleo/gpa, but will then tell you (on the command prompt) that its a really really bad idea, but type "y" to continue

so type y and you now have a gpg key without a passphrase

type "quit" and say "y" to the save change prompt to finish this task.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cpatelxAuthor Commented:
I actually just needed a key with passphrase. I read the request wrong. I apologize for the confusion. I was able to generate a 2048bit RSA key with Kleopatra. Thank you for the valuable info you provided to help me more familiar with this process.

Dave HoweSoftware and Hardware EngineerCommented:
welcome to the wonderful world of secure email - now you just need to find someone else willing to use it :D
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.